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

    Interface representing a user data source. UserDatasource

    handleAuthenticationResponse - Handles the authentication response.

    The response object containing authorization or error information.

    The username associated with the response.

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

    Implemented by

    Index

    Properties

    api: Api<any>

    The API for the user data source.

    options: IDMOptions

    The IDM options for the user data source.

    session: default

    The session information for the user data source.

    urlManager: default

    The URL manager for the user data source.

    Methods

    • Handles the authentication response from the server.

      Parameters

      • resp: 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<any>

      A promise that resolves with the authentication response.