1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-10 19:34:18 +00:00

fix: prevent page flickering on redirection based on auth state

This commit is contained in:
Elias Schneider
2025-10-24 11:08:31 +02:00
parent 47927d1574
commit 10d640385f
3 changed files with 10 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ export function getAuthRedirectPath(path: string, user: User | null) {
path.startsWith('/lc/') ||
path == '/signup' ||
path == '/signup/setup' ||
path == '/setup' ||
path.startsWith('/st/');
const isPublicPath = ['/authorize', '/device', '/health', '/healthz'].includes(path);
const isAdminPath = path == '/settings/admin' || path.startsWith('/settings/admin/');