Handlers
Handlers Introduction
Handlers is a way to programmatically customize some behaviors of the SDK.
To add your custom handlers to the Dynamic SDK settings in the DynamicContextProvider:
<DynamicContextProvider
settings={{
handlers: {
// handles callbacks go here
},
}}
>
...
</DynamicContextProvider>
handleConnectedWallet: Handler that runs before Dynamic establishes a wallet connection. Good place to run checks (e.g. compliance) before the wallet connection is established.
handleVerifiedUser: Handler that runs before Dynamic finish the authentication. Goof place to perform an action on the user object before the Dynamic SDK finishes the authentication.
Was this page helpful?