Appearance
Documentation / react-auth / useSyncJwtBasedAuthState
Function: useSyncJwtBasedAuthState() ​
useSyncJwtBasedAuthState(
__namedParameters
):UseSyncJwtBasedAuthStateInterface
Hook to sync the state of a JWT-based external authentication system with Privy.
When "JWT-based authentication" is enabled, this hook will be used to sync the state of the external system back to Privy.
Make sure to call this hook in a component that is mounted throughout the lifetime of the application, whether the user is authenticated or not.
Parameters ​
• __namedParameters: UseSyncJwtBasedAuthStateInput
Returns ​
UseSyncJwtBasedAuthStateInterface
An object containing the current state of the JWT authentication flow.