Authentication state
Throughout your app, you may want to gate certain user experiences based on whether the current user is authenticated or not. Privy makes it easy to check your user’s authentication status and handle it appropriately.
You can use the boolean authenticated
from the usePrivy
hook to determine if your user is authenticated or not.
Before determining a user’s auth status from Privy, you should verify that
Privy has fully initialized and is ready
Usage
Was this page helpful?