Update
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-27 23:28:43 +02:00
parent 21015757bd
commit c76a746cd7
39 changed files with 3268 additions and 519 deletions
+7
View File
@@ -5,6 +5,9 @@ export interface AuthSession {
authenticated: boolean
username: string | null
expires_at: string | null
role: 'operator' | 'guest' | null
guest_access_enabled: boolean
guest_project_id: string | null
}
export function getAuthSession(): Promise<AuthSession> {
@@ -15,6 +18,10 @@ export function login(username: string, password: string): Promise<AuthSession>
return apiPost<AuthSession>('/api/v1/auth/login', { username, password })
}
export function loginAsGuest(): Promise<AuthSession> {
return apiPost<AuthSession>('/api/v1/auth/guest')
}
export function logout(): Promise<AuthSession> {
return apiPost<AuthSession>('/api/v1/auth/logout')
}