The primary hook for interacting with the Auth0 SDK in a React component.
It provides access to the authentication state (user, error, isLoading) and methods for performing authentication (authorize, clearSession, etc.).
user
error
isLoading
authorize
clearSession
The current authentication state and methods.
const { user, authorize, clearSession, isLoading } = useAuth0(); Copy
const { user, authorize, clearSession, isLoading } = useAuth0();
The primary hook for interacting with the Auth0 SDK in a React component.
It provides access to the authentication state (
user
,error
,isLoading
) and methods for performing authentication (authorize
,clearSession
, etc.).