mirror of
https://github.com/dergigi/boris.git
synced 2026-01-07 08:54:25 +01:00
revert: do not block when remote === user pubkey
- Amber may legally use user pubkey as remote id - Remove validation and warning that caused false negatives
This commit is contained in:
@@ -48,12 +48,7 @@ const LoginOptions: React.FC = () => {
|
||||
// Get pubkey from signer
|
||||
const pubkey = await signer.getPublicKey()
|
||||
|
||||
// Validate: remote (Amber) pubkey must not equal user pubkey
|
||||
if ((signer as any).remote === pubkey) {
|
||||
console.error('[bunker] Invalid bunker URI: remote pubkey equals user pubkey')
|
||||
setError('Invalid bunker URI (remote equals your pubkey). Generate a fresh Connect link in Amber and try again.')
|
||||
return
|
||||
}
|
||||
// Note: Some signers may mirror user pubkey in remote field; not a hard error
|
||||
|
||||
// Create account from signer
|
||||
const account = new Accounts.NostrConnectAccount(pubkey, signer)
|
||||
|
||||
Reference in New Issue
Block a user