disconnect
Last updated
Was this helpful?
Disconnects the currently selected wallet, clears all session data, and removes cached address data from local storage.
import { disconnect } from '@stacks/connect';
disconnect();If the currently selected provider supports a custom disconnect method (e.g. WalletConnect), it will be called first.
The selected provider ID is cleared, so subsequent calls to request will prompt wallet selection again.
All data stored via getLocalStorage is removed.
The legacy UserSession data is also deleted.
function disconnect(): voidvoid
This function does not return a value.
This function takes no parameters.
Last updated
Was this helpful?
Was this helpful?