feature: auto refresh user token when token exp in 7 days (#644)

This commit is contained in:
Dream Hunter
2025-04-26 21:22:26 +08:00
committed by GitHub
parent 327962432a
commit 101a561894
7 changed files with 32 additions and 4 deletions
+2
View File
@@ -92,6 +92,8 @@ export const useGlobalState = createGlobalState(
is_admin: false,
/** @type {string | null} */
access_token: null,
/** @type {string | null} */
new_user_token: null,
/** @type {null | {domains: string[] | undefined | null, role: string, prefix: string | undefined | null}} */
user_role: null,
});