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 <a href="../interfaces/Types.Auth0ContextInterface.html" class="tsd-kind-interface">Auth0ContextInterface</a> on how to use the above methods.
Use the
useAuth0
in your function components to access authentication state and methods.