prettier auth state ternary

This commit is contained in:
Igor Loskutov
2025-09-04 15:13:31 -04:00
parent 6f29d08d1c
commit 89dd05ec84

View File

@@ -51,7 +51,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
} }
case "authenticated": { case "authenticated": {
if (customSession?.error === REFRESH_ACCESS_TOKEN_ERROR) { if (customSession?.error === REFRESH_ACCESS_TOKEN_ERROR) {
// token had chance to expire but next auth still returns "authenticated" so show user unauthenticated state // token had expired but next auth still returns "authenticated" so show user unauthenticated state
return { return {
status: "unauthenticated" as const, status: "unauthenticated" as const,
}; };