Skip to content

Commit 3eab2d0

Browse files
committed
Only refresh when needed, change user to typevar, minimize ui changes and change refresh_token
1 parent 3a8a002 commit 3eab2d0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

airflow-core/src/airflow/ui/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { getRedirectPath } from "src/utils/links.ts";
3333
import i18n from "./i18n/config";
3434
import { client } from "./queryClient";
3535
import { system } from "./theme";
36-
import { clearToken, tokenHandler, clearRefreshTokenCookie } from "./utils/tokenHandler";
36+
import { clearToken, tokenHandler } from "./utils/tokenHandler";
3737

3838
// redirect to login page if the API responds with unauthorized or forbidden errors
3939
axios.interceptors.response.use(

airflow-core/src/airflow/ui/src/utils/tokenHandler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import type { InternalAxiosRequestConfig } from "axios";
2020

2121
export const TOKEN_STORAGE_KEY = "token";
22-
2322
const getTokenFromCookies = (): string | undefined => {
2423
const cookies = document.cookie.split(";");
2524

0 commit comments

Comments
 (0)