Function useAuth0

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

    Returns Auth0ContextInterface<User>

    The useAuth0 hook interface

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

    Refer to Auth0ContextInterface on how to use the above methods.

Generated using TypeDoc