getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
103 stars 31 forks source link

Bug: No unique constraint for app pubkeys #213

Open rolznz opened 7 months ago

rolznz commented 7 months ago

apps are currently indexed by pubkey (e.g. https://nwc.getalby.com/apps/21bc9ba96fa06d8cedeca7bb2ca601c514543539c15fc2bf79df4331ea49a995) which is a problem if there are two apps for the same user that share the same pubkey.

A workaround is in https://github.com/getAlby/nostr-wallet-connect/pull/192/commits/392a7708510df029d8c405f442a595d3fc231668 but it would be safer as a database constraint.