I have the following…
const {
isAuthenticated,
user,
} = useAuth0();
{ isAuthenticated ? (
) : (
)}
The problem is isAuthenticated is false before it is true so the PersonIcon flashes before the avatar. How can I ensure auth0 is done making sure it is authenticated before checking that property. I am using the Auth0 React SDK.