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:
@@ -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/');
|
||||
|
||||
Reference in New Issue
Block a user