Auth User
In the Hipster if you want to get the currently authenticated user. You need to call the useAuthUser hook and you will get the auth user.
const {user, isAuthenticated, isLoading} = useAuthUser();
user // authenticated user object
isLoading // authentication is in progress
isAuthenticated // denote the user auth state
Copy link