refactor(web): remove admin token refresh flow

This commit is contained in:
mlogclub
2026-04-30 18:06:46 +08:00
parent 34e27dffca
commit d300e0f00e
4 changed files with 8 additions and 61 deletions
+1 -2
View File
@@ -68,8 +68,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
}, [requiresAuth, router])
async function signOut() {
const current = readSession()
await logout(current?.refreshToken)
await logout()
setSession(null)
startTransition(() => {
router.replace("/dashboard/login")