mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-28 19:49:05 +01:00
feat: improve error handling on authorize page
This commit is contained in:
@@ -18,7 +18,7 @@ export function getAuthRedirectPath(url: URL, user: User | null) {
|
||||
|
||||
const isPublicPath =
|
||||
path.startsWith('/lc/') ||
|
||||
['/interaction', '/login/alternative/code', '/device', '/health', '/healthz'].includes(path);
|
||||
['/interaction', '/interaction/error', '/login/alternative/code', '/device', '/health', '/healthz'].includes(path);
|
||||
|
||||
const isAdminPath = path == '/settings/admin' || path.startsWith('/settings/admin/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user