mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-22 02:06:39 +00:00
Add proxy auth ui
This commit is contained in:
17
proxy/web/src/data.ts
Normal file
17
proxy/web/src/data.ts
Normal 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__ ?? {}
|
||||
}
|
||||
Reference in New Issue
Block a user