fix: do not save secret (#376)

This commit is contained in:
hoppe
2025-06-05 10:12:37 +09:00
committed by GitHub
parent 1b41af5a2f
commit 2b82ae78b7

View File

@@ -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()
})
}