Retrieves information about the currently authenticated user.
The current user or null if not available.
const currentUser = useCurrentUser()if (currentUser) { console.log('Logged in as', currentUser.name)} Copy
const currentUser = useCurrentUser()if (currentUser) { console.log('Logged in as', currentUser.name)}
Retrieves information about the currently authenticated user.