Summary

This callback will be called after the user disconnects their wallet and logs out.

Usage

<DynamicContextProvider
  settings={{
    eventsCallbacks: {
      onLogout: (args) => {
        console.log('onLogout was called', args);
      }
    }
  }}
>
 {/* ... rest of your app ... */}
</DynamicContextProvider>

Callback Argument Value

user: UserProfile | undefined;

If your auth mode is connect-only, then the user argument will be undefined, otherwise the user argument will be the user object that just logged out.

📘

For details about UserProfile, see here: https://docs.dynamic.xyz/docs/userprofile