mirror of
https://github.com/dergigi/boris.git
synced 2025-12-30 04:54:49 +01:00
fix: pass permissions on reconnect to ensure decrypt allowed
- Call signer.connect(undefined, permissions) when restoring account - Ensures bunker re-grants decrypt (nip04/nip44) if needed - Keeps implementation aligned with applesauce examples
This commit is contained in:
@@ -48,7 +48,8 @@ export async function reconnectBunkerSigner(
|
||||
// Important: do NOT set isConnected manually; establish connection properly
|
||||
try {
|
||||
console.log('[bunker] Connecting to bunker remote...')
|
||||
await account.signer.connect()
|
||||
// Re-request permissions on reconnect to ensure decrypt is allowed
|
||||
await account.signer.connect(undefined, getDefaultBunkerPermissions())
|
||||
console.log('[bunker] ✅ Connected to bunker remote')
|
||||
} catch (err) {
|
||||
console.error('[bunker] ❌ Failed to connect to bunker remote:', err)
|
||||
|
||||
Reference in New Issue
Block a user