๐ Stablecoin Accounts are live! Learn more
Overview & Setup
Providers & Connectors
UI Components
Hooks
- Hooks Introduction
- Core Hooks
- Login & User Management
- Wallets
- Embedded Wallets
- Funding
Events
Objects & Utilities
- React Objects Introduction
- Objects
- Utilities
Event Callbacks
onAuthSuccess
Summary
This callback will be called after the user successfully authenticates.
Usage
Copy
Ask AI
<DynamicContextProvider
settings={{
events: {
onAuthSuccess: (args) => {
console.log('onAuthSuccess was called', args);
// you can get the jwt by calling the getAuthToken helper function
const authToken = getAuthToken();
console.log('authToken', authToken);
}
}
}}
>
{/* ... rest of your app ... */}
</DynamicContextProvider>
Callback Argument Value
Copy
Ask AI
{
handleLogOut: () => Promise<void>;
isAuthenticated: boolean;
primaryWallet: Wallet | null
user: UserProfile;
~walletConnector: WalletConnector;~
}
Was this page helpful?
On this page
Assistant
Responses are generated using AI and may contain mistakes.