Please include the following information in your post:
- Which SDK this is regarding: Auth0 React
- SDK Version: 1.2.0
- Platform Version: Don’t know
- Code Snippets/Error Messages/Supporting Details/Screenshots:
Is this a feature request or bug report? No
It’s a question about the “error” value returned by the useAuth0 hook.
The way I understand this is when isLoading is true, the authentication sequence is in progress. But when it is false, I can safely use isAuthenticated.
So,
if isAuthenticated is true, then the user has successfully logged in.
What if isAuthenticated is false? Is this considered an error condition with the reason mentioned in the “error” value returned by the hook?
Or is it possible that isAuthenticated is false but the “error” value gives no reason?
Unfortunately, the documentation for this hook is not awesome, hence the question.