feat: add operator landing and login
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:
Codex
2026-07-22 20:10:21 +02:00
parent 36d137e224
commit 115f9850a7
27 changed files with 1448 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
import { apiGet, apiPost } from './client'
export interface AuthSession {
authentication_required: boolean
authenticated: boolean
username: string | null
expires_at: string | null
}
export function getAuthSession(): Promise<AuthSession> {
return apiGet<AuthSession>('/api/v1/auth/session')
}
export function login(username: string, password: string): Promise<AuthSession> {
return apiPost<AuthSession>('/api/v1/auth/login', { username, password })
}
export function logout(): Promise<AuthSession> {
return apiPost<AuthSession>('/api/v1/auth/logout')
}