Crema React
Search…
Auth User
In the Crema if you want to get the currently authenticated user. You need to call the useAuthUser hook and you will get the auth user like below.
In the Crema if you want to get the currently authenticated user. You need to call the useAuthUser hook and you will get the auth user like below.
1
const {user, isAuthenticated, isLoading} = useAuthUser();
2
3
user // authenticated user object
4
isLoading // authentication is in progress
5
isAuthenticated // denote the user auth state
Copied!
Copy link