Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientAuthenticator<Credential, Data, Context>

Type parameters

Hierarchy

Index

Properties

platform: string

Methods

  • Called before the authorization finish, you can make some simple non-async final checks. Return the auth context supplement if success.

    Parameters

    • data: Data

    Returns CheckDataResult<Context>

  • Start work flow from client side and resolve the auth data which would be then verified and signed at server side. If the auth flow reuqire redirecting user-agent, just set the location and pend resolving.

    Parameters

    • entry: string

    Returns Promise<AuthenticatorCredentialResult<Credential>>

  • init(authEntry: string, errorFromServer: null | AuthError, dataFromServer: null | Data): Promise<void>
  • Initiate necessary libary like IdP SDK to start authentication works, this method is expected to be called before the view of app start rendering and would only be called once.

    Parameters

    • authEntry: string
    • errorFromServer: null | AuthError
    • dataFromServer: null | Data

    Returns Promise<void>

Generated using TypeDoc