Add proxy auth ui

This commit is contained in:
Eduard Gert
2026-02-03 19:05:55 +01:00
parent 92f72bfce6
commit 733ea77c5c
44 changed files with 5479 additions and 13 deletions

17
proxy/web/src/data.ts Normal file
View File

@@ -0,0 +1,17 @@
// Auth method types matching Go
export type AuthMethod = 'pin' | 'password' | 'oidc' | "link"
// Data injected by Go templates
export interface Data {
methods?: Partial<Record<AuthMethod, string>>
}
declare global {
interface Window {
__DATA__?: Data
}
}
export function getData(): Data {
return window.__DATA__ ?? {}
}