This commit is contained in:
Matthias Hochmeister
2026-02-23 17:08:58 +01:00
commit f09748f4a1
97 changed files with 17729 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
export interface User {
id: string;
email: string;
name: string;
given_name: string;
family_name: string;
preferred_username?: string;
groups?: string[];
}
export interface AuthTokens {
token: string;
refreshToken?: string;
expiresIn?: number;
}
export interface AuthState {
user: User | null;
token: string | null;
isAuthenticated: boolean;
isLoading: boolean;
}
export interface AuthContextType extends AuthState {
login: (code: string) => Promise<void>;
logout: () => void;
refreshAuth: () => Promise<void>;
}