Read session and user data with Expo
This guide demonstrates how to access active session and user data in your Expo application.
Session data example
The useAuth()
hook provides information about the current auth state, as well as helper methods to manage the current active session.
The following example demonstrates how to use useAuth()
to get and display session and user data:
User data example
The useUser()
hook enables you to access the current user's data and provides helper methods to manage the current active session.
The following example demonstrates how to use useUser()
to check if the user is signed in and display their first name:
Feedback
Last updated on