This should not return null — users of a custom app will always be authenticated via Core
Provides the currently authenticated user’s profile information.
The current user data
const user = useCurrentUser()return ( <figure> <img src={user?.profileImage} alt=`Profile image for ${user?.name}` /> <h2>{user?.name}</h2> </figure>) Copy
const user = useCurrentUser()return ( <figure> <img src={user?.profileImage} alt=`Profile image for ${user?.name}` /> <h2>{user?.name}</h2> </figure>)
TODO
This should not return null — users of a custom app will always be authenticated via Core