feat(frontend): require center API key on login/auth calls

This commit is contained in:
nav
2026-05-13 08:18:01 +00:00
parent c906cde209
commit 4724678035
5 changed files with 22 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ import type { AuthSession } from '../lib/auth-storage'
export type AuthContextValue = {
session: AuthSession | null
isAuthed: boolean
login: (centerApiBase: string, email: string, password: string) => Promise<void>
login: (centerApiBase: string, centerApiKey: string, email: string, password: string) => Promise<void>
logout: () => Promise<void>
ensureFreshToken: () => Promise<string | null>
}