Browse Source

fix: do not save secret (#376)

imwald
hoppe 9 months ago committed by GitHub
parent
commit
2b82ae78b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/providers/NostrProvider/index.tsx

4
src/providers/NostrProvider/index.tsx

@ -412,10 +412,12 @@ export function NostrProvider({ children }: { children: React.ReactNode }) { @@ -412,10 +412,12 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
if (!loginResult.pubkey) {
throw new Error('Invalid bunker')
}
const bunkerUrl = new URL(loginResult.bunkerString!)
bunkerUrl.searchParams.delete('secret')
return login(bunkerSigner, {
pubkey: loginResult.pubkey,
signerType: 'bunker',
bunker: loginResult.bunkerString!,
bunker: bunkerUrl.toString(),
bunkerClientSecretKey: bunkerSigner.getClientSecretKey()
})
}

Loading…
Cancel
Save