mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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);
|
||
|
}
|