Skip to content

Commit

Permalink
✨ feat: no logout on disconnect (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 authored Aug 9, 2024
1 parent 054031a commit 61035d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/sdk/src/lib/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ export class HibitIdWallet {

public disconnect = async () => {
console.debug('[sdk call Disconnect]')
this._disconnectedPromise = new BridgePromise<boolean>()
this._rpc?.call(HibitIdExposeRPCMethod.DISCONNECT, {})
await this._disconnectedPromise.promise
this.dispose()
// this._disconnectedPromise = new BridgePromise<boolean>()
// this._rpc?.call(HibitIdExposeRPCMethod.DISCONNECT, {})
// await this._disconnectedPromise.promise
// this.dispose()
}

public dispose = async () => {
Expand Down

0 comments on commit 61035d8

Please sign in to comment.