Skip to content

Disconnect doesn't seem to work #123

@shramee

Description

@shramee

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 ) );
} );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions