@creator.co/module-identity-client - v1.1.11
    Preparing search index...

    Interface representing a session data source. SessionDatasource

    handleAuthenticationResponse - Handles the authentication response.

    The response object containing authorization or error information.

    The username associated with the response.

    interface SessionDatasource {
        api: Api<any>;
        authenticator: default;
        options: IDMOptions;
        urlManager: default;
        handleAuthenticationResponse(
            resp: object | AuthorizationResponse | ErrorResponse,
            username?: string,
            isRenewal?: boolean,
            isLocalAuthentication?: boolean,
        ): Promise<boolean>;
    }
    Index

    Properties

    api: Api<any>

    The API for the session data source.

    authenticator: default

    The authenticator for the session data source.

    options: IDMOptions

    The IDM options for the session data source.

    urlManager: default

    The URL manager for the session data source.

    Methods

    • Handles the authentication response from the server.

      Parameters

      • resp: object | AuthorizationResponse | ErrorResponse

        The response object from the server.

      • Optionalusername: string

        The username for the authentication.

      • OptionalisRenewal: boolean

        Indicates if the authentication is a renewal.

      • OptionalisLocalAuthentication: boolean

        Indicates if the authentication is local.

      Returns Promise<boolean>

      A promise that resolves with the authentication response.