What is Nostr?
Mtg /
npub1zug…dx38
2023-03-22 15:09:34
in reply to nevent1q…pcmq

Mtg on Nostr: Although the secret key is being randomly generated on each page load, when the user ...

Although the secret key is being randomly generated on each page load, when the user connects to a signer, I store the secret key that was used in localstorage.
And on subsequent page loads, I construct the connection object based on the stored value:

\`\`\`
const connect = new Connect({

relay: connection.relay,

secretKey: connection.secretKey,

target: connection.pubkey, });
\`\`\`

(connection is the object stored in localStorage)
Author Public Key
npub1zug85tns97cfxafjpa2rh28d45d6h4txgxt3vr8rxe9czr85j47qntdx38