MonoCloud Authentication SDK
    Preparing search index...

    Type Alias OnSessionCreating

    OnSessionCreating: (
        session: MonoCloudSession,
        idToken?: Partial<IdTokenClaims>,
        userInfo?: UserinfoResponse,
    ) => Promise<void> | void

    Defines a callback function to be executed when a new session is being created or updated. This function receives parameters related to the session being created, including the session object itself, optional ID token and user information claims.

    Type Declaration

      • (
            session: MonoCloudSession,
            idToken?: Partial<IdTokenClaims>,
            userInfo?: UserinfoResponse,
        ): Promise<void> | void
      • Parameters

        • session: MonoCloudSession

          The Session object being created.

        • OptionalidToken: Partial<IdTokenClaims>

          Optional. Claims from the ID token received during authentication.

        • OptionaluserInfo: UserinfoResponse

          Optional. Claims from the user information received during authentication.

        Returns Promise<void> | void

        A Promise that resolves when the operation is completed, or void.