File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
connectors/auth-connector Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export const CONNECTOR_STATUS = {
33 READY : "ready" ,
44 CONNECTING : "connecting" ,
55 CONNECTED : "connected" ,
6+ DISCONNECTING : "disconnecting" ,
67 DISCONNECTED : "disconnected" ,
78 ERRORED : "errored" ,
89} as const ;
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ class AuthConnector extends BaseConnector<AuthLoginParams> {
215215 async disconnect ( options : { cleanup : boolean } = { cleanup : false } ) : Promise < void > {
216216 if ( this . status !== CONNECTOR_STATUS . CONNECTED ) throw WalletLoginError . notConnectedError ( "Not connected with wallet" ) ;
217217 if ( ! this . authInstance ) throw WalletInitializationError . notReady ( "authInstance is not ready" ) ;
218+ this . status = CONNECTOR_STATUS . DISCONNECTING ;
218219 await this . authInstance . logout ( ) ;
219220 if ( this . wsEmbedInstance ) await this . wsEmbedInstance . logout ( ) ;
220221 if ( options . cleanup ) {
You can’t perform that action at this time.
0 commit comments