refactor(web): remove admin token refresh flow
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user