Read session and user data with Expo
Clerk provides a set of React hooks and helpers that you can use to access active session and user data in your Expo application. The examples in this guide will demonstrate how to use some of these helpers.
See the React Client-side Helpers reference guides for more information.
Session data example
useAuth()
gives you access to the current auth state. This hook provides the minimal information needed for data-loading and 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
useUser()
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