react-native-auth0
    Preparing search index...

    Class Auth

    Class for interfacing with the Auth0 Authentication API endpoints.

    Index

    Properties

    clientId: string

    The Auth0 client ID

    domain: string

    The Auth0 tenant domain

    Methods

    • Completes the Passworldess authentication with an email connection that was started using <a href="#passwordlesswithemail" class="tsd-kind-method">passwordlessWithEmail</a>.

      Parameters

      Returns Promise<Credentials>

      A populated instance of <a href="../types/Credentials.html" class="tsd-kind-type-alias">Credentials</a>.

    • Log in a user using an Out Of Band authentication code after they have received the 'mfa_required' error. The MFA token tells the server the username or email, password, and realm values sent on the first request.

      Requires your client to have the MFA OOB Grant Type enabled. See Client Grant Types to learn how to enable it.

      Parameters

      Returns Promise<Credentials>

      A populated instance of <a href="../types/Credentials.html" class="tsd-kind-type-alias">Credentials</a>.

    • Log in a user using the One Time Password code after they have received the 'mfa_required' error. The MFA token tells the server the username or email, password, and realm values sent on the first request.

      Requires your client to have the MFA OTP Grant Type enabled. See Client Grant Types to learn how to enable it.

      Parameters

      Returns Promise<Credentials>

      A populated instance of <a href="../types/Credentials.html" class="tsd-kind-type-alias">Credentials</a>.

    • Log in a user using a multi-factor authentication Recovery Code after they have received the 'mfa_required' error. The MFA token tells the server the username or email, password, and realm values sent on the first request.

      Requires your client to have the MFA Grant Type enabled. See Client Grant Types to learn how to enable it.

      Parameters

      Returns Promise<Credentials>

      A populated instance of <a href="../types/Credentials.html" class="tsd-kind-type-alias">Credentials</a>.

    • Completes the Passworldess authentication with an SMS connection that was started using <a href="#passwordlesswithsms" class="tsd-kind-method">passwordlessWithSMS</a>.

      Parameters

      Returns Promise<Credentials>

      A populated instance of <a href="../types/Credentials.html" class="tsd-kind-type-alias">Credentials</a>.

    • Request a challenge for multi-factor authentication (MFA) based on the challenge types supported by the application and user. The challenge type is how the user will get the challenge and prove possession. Supported challenge types include: "otp" and "oob".

      Parameters

      Returns Promise<MultifactorChallengeResponse>

      <a href="../types/MultifactorChallengeOTPResponse.html" class="tsd-kind-type-alias">MultifactorChallengeOTPResponse</a>, <a href="../types/MultifactorChallengeOOBResponse.html" class="tsd-kind-type-alias">MultifactorChallengeOOBResponse</a>, or <a href="../types/MultifactorChallengeOOBWithBindingResponse.html" class="tsd-kind-type-alias">MultifactorChallengeOOBWithBindingResponse</a> depending on the challenge type.

    • Starts the Passworldess flow with an email connection.

      This should be completed later using a call to <a href="#loginwithemail" class="tsd-kind-method">loginWithEmail</a>, passing the OTP that was sent to the user.

      Parameters

      Returns Promise<void>

    • Starts the Passwordless flow with an SMS connection.

      This should be completed later using a call to <a href="#loginwithsms" class="tsd-kind-method">loginWithSMS</a>, passing the OTP that was sent to the user.

      Parameters

      Returns Promise<void>