15 lines
282 B
TypeScript
15 lines
282 B
TypeScript
|
export interface GlobalAuthentik {
|
||
|
locale?: string;
|
||
|
flow?: {
|
||
|
layout: string;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export interface AuthentikWindow {
|
||
|
authentik: GlobalAuthentik;
|
||
|
}
|
||
|
|
||
|
export function globalAK(): GlobalAuthentik {
|
||
|
return (window as unknown as AuthentikWindow).authentik;
|
||
|
}
|