@konemono/nostr-login 1.11.13 → 1.11.15
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.
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/unpkg.js +2 -2
- package/package.json +1 -1
- package/src/modules/AuthNostrService.ts +7 -1
package/package.json
CHANGED
|
@@ -511,7 +511,7 @@ class AuthNostrService extends EventEmitter implements Signer {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
public isAuthing() {
|
|
514
|
-
return !!this.readyCallback;
|
|
514
|
+
return !!this.readyCallback || !!this.signerPromise;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
public async startAuth() {
|
|
@@ -773,6 +773,12 @@ class AuthNostrService extends EventEmitter implements Signer {
|
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
775
|
|
|
776
|
+
// ログイン処理中はpingをスキップ
|
|
777
|
+
if (this.isAuthing()) {
|
|
778
|
+
console.log('Skipping ping during authentication');
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
|
|
776
782
|
// ping確認
|
|
777
783
|
if (this.signer.remotePubkey) {
|
|
778
784
|
await this.signer['_rpc'].pingWithTimeout(this.signer.remotePubkey, 2000);
|