Disconnecting after connecting doesn't work,
import {connect, disconnect} from "get-starknet";
// Doesn't work
disconnect();
// Neither does this
disconnect( {clearDefaultWallet: true} );
// Nor this
disconnect( {clearLastWallet: true, clearDefaultWallet: true} );
On the next session (in another tab or revisiting later), checking user login status still returns the wallet.
connect( {showList: false} ).then( wallet => {
wallet
?.enable( {showModal: false} )
.then( () => _onConnectedStatusChange( wallet ) );
} );
Disconnecting after connecting doesn't work,
On the next session (in another tab or revisiting later), checking user login status still returns the wallet.