15 lines
462 B
TypeScript
15 lines
462 B
TypeScript
|
|
export interface AuthSession {
|
||
|
|
sessionId: string;
|
||
|
|
userId: number | null;
|
||
|
|
username: string | null;
|
||
|
|
displayName: string;
|
||
|
|
active: boolean;
|
||
|
|
expires: string;
|
||
|
|
}
|
||
|
|
export interface WebSessionStart {
|
||
|
|
webSessionID: string;
|
||
|
|
url: string;
|
||
|
|
}
|
||
|
|
export type AuthStatus = 'unknown' | 'checking' | 'authenticated' | 'expired' | 'unauthenticated';
|
||
|
|
export type AdminAuthStatus = 'unknown' | 'checking' | 'authenticated' | 'expired' | 'unauthenticated';
|