on/off (or once). Wrapping with useReactiveClient is optional and only needed if you also want reads (e.g., client.wallets.userWallets) to trigger React rerenders when they change.
React Native
Types of events
- State change events: fire when a module variable changes. Names match the variable with
Changedappended. - Custom events: fire for specific actions within the module.
How to listen
Callon(eventName, callback) on the module instance. Remove with off(eventName, callback).
Event catalog
Auth moduleauthInitauthSuccessauthFailedloggedOutuserProfileUpdatedauthenticatedUserChangedtokenChanged
emailVerificationFinished
smsVerificationFinished
messageSignedwalletAddedwalletRemovedprimaryChangeduserWalletsChanged
embeddedWalletCreatedhasWalletChanged
evmChangedsolanaChangedsuiChanged
errorloadedChanged
authFlowCancelledauthFlowClosedauthFlowOpened
mfaCompletionSuccess— returns{ mfaToken?: string }mfaCompletionFailure— returns{ error: unknown }