integrate login page wih api and keycloak

This commit is contained in:
Yusron alamsyah
2026-03-31 11:11:39 +07:00
parent acf491f8aa
commit d438fb0f5f
68 changed files with 1213 additions and 212 deletions
+39
View File
@@ -19,3 +19,42 @@ export interface ExtendedSession {
refreshToken: string;
expiresAt: number;
}
export interface AuthInfoData {
auth_provider: string;
email: string;
name: string;
role: any;
user_id: string;
username: string;
}
export interface AuthInfoResponse {
data: AuthInfoData;
message: string;
}
export interface LogoutResponse {
success: boolean;
logoutUrl?: string;
}
export interface SessionData {
user: AuthInfoData;
accessToken: string;
idToken?: string;
refreshToken: string;
expiresAt: number;
}
export interface LoginResponse {
data : {
provider: string;
access_token: string;
refresh_token: string;
expires_in: number;
token_type: string;
}
}