Crema React
Search…
Crema React
v-3
About Crema
Overview
Crema Overview
Folder Structure
GitHub Access
Slack Community
Figma File
Development
Installation
Route Overview
Add New Route
Auth User
Authentication Methods
API Calls
Multilingual
Style Framework
MUI
Theme Color
Sidebar Configuration
Navigation Style
Footer Configuration
Template Mode
Template Direction
Next-Js
About Next.JS
Folder Structure
Installing Next jS
Authentication
Add New Route
Deploy to server
FAQ
React Bootstrap
About React-Bootstrap
Styled Framework
RTL
Dark Theme
ANT Design
About Crema Ant
Style Framework
Servers
Python
Laravel
Mongoose
Credits
Crema V-2
Powered By
GitBook
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!
Development - Previous
Add New Route
Next - Development
Authentication Methods
Last modified
4mo ago
Copy link