mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
9ae2096d2a
This refactoring simplify the code of the frontend and prepare the portal for receiving a user settings page and an admin page.
17 lines
344 B
TypeScript
17 lines
344 B
TypeScript
import { Get } from "./Client";
|
|
import { StatePath } from "./Api";
|
|
|
|
export enum AuthenticationLevel {
|
|
Unauthenticated = 0,
|
|
OneFactor = 1,
|
|
TwoFactor = 2,
|
|
}
|
|
|
|
export interface AutheliaState {
|
|
username: string;
|
|
authentication_level: AuthenticationLevel
|
|
}
|
|
|
|
export function getState() {
|
|
return Get<AutheliaState>(StatePath);
|
|
} |