A callback that runs after the wallet is connected, but before we create a user session. You can use this callback to run your logic and reject (by returning boolean false). For example, running a fraud check before establishing the connection.
<DynamicContextProvider settings={{ handlers: { handleConnectedWallet: (args) => { console.log("handleConnectedWallet was called", args); // if runYourOwnLogic return true, the connection will be established, otherwise it will not return runYourOwnLogic(); }, }, }}> {/* ... rest of your app ... */}</DynamicContextProvider>