The Basics
- Add Login / Signup
- Chains / Networks
- Wallets
- Users / VC's
- Design
- Onramps
Beyond The Basics
- Headless
- Global Wallets
- Bridge Widget
- Rate Limits
Developer Dashboard
- SDK and API Keys
- Sandbox vs Live
- Analytics
- User Management
- Test Accounts
- Settings
- Admin
- Webhooks
- Configuring Social Providers
Tutorials
- Farcaster
- Telegram
- Features
- Frameworks
- Integrations
- Webhooks
Migrating to Dynamic
- Migrating to Dynamic
- Migration Tutorials
For Wallets & Chains
Legacy: V1 Embedded Wallets
- V1 Embedded Wallets Overview
- Working with environments that have both v1 and v2 embedded wallets
- Transactional MFA
- Headless
onAuthSuccess
Summary
This callback will be called after the user successfully authenticates.
Usage
<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
{
~authToken: string;~ // deprecated - use getAuthToken() instead
handleLogOut: () => Promise<void>;
isAuthenticated: boolean;
primaryWallet: Wallet | null
user: UserProfile;
~walletConnector: WalletConnector;~
}
Was this page helpful?
On this page