This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/api/Global.ts

15 lines
282 B
TypeScript
Raw Normal View History

export interface GlobalAuthentik {
locale?: string;
flow?: {
layout: string;
};
}
export interface AuthentikWindow {
authentik: GlobalAuthentik;
}
export function globalAK(): GlobalAuthentik {
return (window as unknown as AuthentikWindow).authentik;
}