OnLinkSuccess
This callback will be called when the user successfully links a wallet.
Usage
<DynamicContextProvider
settings={{
eventsCallbacks: {
onLinkSuccess: (args) => {
console.log('onLinkSuccess was called', args);
}
}
}}
>
{/* ... rest of your app ... */}
</DynamicContextProvider>
Callback Argument Value
{
authToken: string;
handleLogOut: () => Promise<void>;
isAuthenticated: boolean;
user: UserProfile;
walletConnector: WalletConnector;
}
For details about UserProfile, see here: https://docs.dynamic.xyz/docs/userprofile
For details about WalletConnector, see here: https://docs.dynamic.xyz/docs/walletconnector
Deprecation Warning
The top-level onLinkSuccess prop is deprecated. It will continue to work, but please use the onLinkSuccess prop nested in eventsCallbacks. We will eventually remove the top-level onLinkSuccess prop.
Updated 14 days ago