@web3auth/no-modal 8.6.3-alpha.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -273,10 +273,9 @@ class Web3AuthNoModal extends openlogin_jrpc_namespaceObject.SafeEventEmitter {
273
273
  this.commonJRPCProvider.updateProviderEngineProxy(provider.provider || provider);
274
274
  return this.provider;
275
275
  }
276
- async logout() {
277
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
278
- cleanup: false
279
- };
276
+ async logout(options = {
277
+ cleanup: false
278
+ }) {
280
279
  if (this.status !== base_namespaceObject.ADAPTER_STATUS.CONNECTED || !this.connectedAdapterName) throw base_namespaceObject.WalletLoginError.notConnectedError(`No wallet is connected`);
281
280
  await this.walletAdapters[this.connectedAdapterName].disconnect(options);
282
281
  }
@@ -197,10 +197,9 @@ class Web3AuthNoModal extends SafeEventEmitter {
197
197
  this.commonJRPCProvider.updateProviderEngineProxy(provider.provider || provider);
198
198
  return this.provider;
199
199
  }
200
- async logout() {
201
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
202
- cleanup: false
203
- };
200
+ async logout(options = {
201
+ cleanup: false
202
+ }) {
204
203
  if (this.status !== ADAPTER_STATUS.CONNECTED || !this.connectedAdapterName) throw WalletLoginError.notConnectedError(`No wallet is connected`);
205
204
  await this.walletAdapters[this.connectedAdapterName].disconnect(options);
206
205
  }