@opencxh/domain 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -381,18 +381,15 @@ export interface OAuthConfig {
|
|
|
381
381
|
scopes: string[];
|
|
382
382
|
/** Extra params voor authorize-URL (prompt, access_type, etc.). */
|
|
383
383
|
authorizeParams?: Record<string, string>;
|
|
384
|
-
/** Optionele identity-decoder voor OAuth-providers met JWT id_token (MS, Google). */
|
|
385
|
-
decodeIdentity?: (tokens: TokenResponse) => Promise<{
|
|
386
|
-
externalUserId: string;
|
|
387
|
-
displayName?: string;
|
|
388
|
-
metadata?: Record<string, unknown>;
|
|
389
|
-
}>;
|
|
390
384
|
refresh?: {
|
|
391
385
|
bufferMs?: number;
|
|
392
|
-
/** Hook voor provider-specifieke post-refresh acties (bv. tenant-inferentie MS). */
|
|
393
|
-
postRefresh?: (tokens: TokenResponse) => Promise<void>;
|
|
394
386
|
};
|
|
395
387
|
}
|
|
388
|
+
export interface DecodedIdentity {
|
|
389
|
+
externalUserId: string;
|
|
390
|
+
displayName?: string;
|
|
391
|
+
metadata?: Record<string, unknown>;
|
|
392
|
+
}
|
|
396
393
|
export type PersonalAuthConfig = {
|
|
397
394
|
mode: "oauth2";
|
|
398
395
|
oauth: OAuthConfig;
|