Route tenant admin PWA via /event-admin

This commit is contained in:
Codex Agent
2025-10-10 15:20:52 +02:00
parent 417b1da484
commit 52197f216d
20 changed files with 112 additions and 75 deletions

View File

@@ -1,5 +1,6 @@
import { generateCodeChallenge, generateCodeVerifier, generateState } from './pkce';
import { decodeStoredTokens } from './utils';
import { ADMIN_AUTH_CALLBACK_PATH } from '../constants';
const TOKEN_STORAGE_KEY = 'tenant_oauth_tokens.v1';
const CODE_VERIFIER_KEY = 'tenant_oauth_code_verifier';
@@ -18,7 +19,7 @@ function getClientId(): string {
}
function buildRedirectUri(): string {
return new URL('/admin/auth/callback', window.location.origin).toString();
return new URL(ADMIN_AUTH_CALLBACK_PATH, window.location.origin).toString();
}
export class AuthError extends Error {