kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
fix: wait 1 second to ensure relay subscription is open
rodzic
7a0ec9fa31
commit
3b2680fc0e
|
@ -17,6 +17,9 @@ function logInNostr(pubkey: string) {
|
||||||
|
|
||||||
const relay = getState().instance.nostr?.relay;
|
const relay = getState().instance.nostr?.relay;
|
||||||
|
|
||||||
|
// HACK: waits 1 second to ensure the relay subscription is open
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||||
|
|
||||||
const token = await dispatch(obtainOAuthToken({
|
const token = await dispatch(obtainOAuthToken({
|
||||||
grant_type: 'nostr_bunker',
|
grant_type: 'nostr_bunker',
|
||||||
pubkey,
|
pubkey,
|
||||||
|
@ -47,4 +50,4 @@ function setNostrPubkey(pubkey: string) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export { logInNostr, nostrExtensionLogIn, setNostrPubkey, NOSTR_PUBKEY_SET };
|
export { logInNostr, nostrExtensionLogIn, setNostrPubkey, NOSTR_PUBKEY_SET };
|
||||||
|
|
Ładowanie…
Reference in New Issue