OnCoreSessionCreating = (session:MonoCloudSession,idToken?:Partial<IdTokenClaims>,userInfo?:UserinfoResponse) =>Promise<void> |void
Callback invoked before a session is created or updated.
This hook allows you to inspect or modify the session during the authentication lifecycle — for example, to enrich the session with custom claims, normalize user data, or apply application-specific logic.
| Parameter | Type | Description |
|---|---|---|
session | MonoCloudSession | The session being created or updated. |
idToken? | Partial<IdTokenClaims> | Optional. Claims extracted from the ID token. |
userInfo? | UserinfoResponse | Optional. Claims returned from the UserInfo endpoint. |
Promise<void> | void
Returns a promise or void. Execution continues once the callback completes.