react-native-auth0
    Preparing search index...

    Function useAuth0

    • Use the useAuth0 in your function components to access authentication state and methods.

      Returns Auth0ContextInterface

      The useAuth0 hook interface

      const {
      // State
      error,
      user,
      isLoading,
      // Methods
      authorize,
      sendSMSCode,
      authorizeWithSMS,
      sendEmailCode,
      authorizeWithEmail,
      sendMultifactorChallenge,
      authorizeWithOOB,
      authorizeWithOTP,
      authorizeWithRecoveryCode,
      hasValidCredentials,
      clearSession,
      getCredentials,
      clearCredentials,
      requireLocalAuthentication,
      authorizeWithPasswordRealm,
      authorizeWithExchangeNativeSocial,
      revokeRefreshToken
      } = useAuth0();

      Refer to Auth0ContextInterface on how to use the above methods.