feat: add CIE authentication callback page with polling mechanism for session verification

This commit is contained in:
gabdevele
2026-06-17 18:03:40 +02:00 Unverified
parent b75e7bbafd
commit 4c42c7963c
5 changed files with 397 additions and 1029 deletions
+35
View File
@@ -54,6 +54,41 @@ export interface TokenResponse {
expires_in_hours: number;
}
export interface CieStartRequest {
frontend_redirect_uri: string;
}
export interface CieStartResponse {
ok: boolean;
authorization_url: string;
state: string;
status: string;
}
export interface CieExchangeRequest {
state: string;
issuer: string;
subject: string;
fiscal_code: string;
first_name?: string;
last_name?: string;
email?: string;
}
export interface CieSessionAuth {
token?: string;
token_type?: string;
expires_in_hours?: number;
[key: string]: any;
}
export interface CieSessionResponse {
ok: boolean;
status: string;
user_id?: number;
auth?: CieSessionAuth;
}
/**
* REPORTS & MEDIA
*/