@gparascandolo Thanks for the response! I’ve added that check now so ‘user’ is no longer undefined, but isAuthenticated still returns false. The code for this is below. Would there be a reason for this?
const { user, isLoading, isAuthenticated } = useAuth0();
if (isLoading) {
console.log("loading");
}
else if (!isAuthenticated) {
console.log("authenticated: ", isAuthenticated);
}
else if (!isLoading && isAuthenticated) {
const { name, picture, email } = user;
return (
...
)
}