nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn #asknostr I’ve implemented nostr auth in an app I’m building. If I want to store some user preferences on a private server that’s not a nostr event, is it a good pattern to use the users keys to sign and verify them on the client before posting their preference to my server/db?
Discussion
I personally use NIP 78 to store user preferences, which are signed events on relays. If you're storing them on your server, I wouldn't bother signing them, since they're verified by your server. Unnecessary signatures/encryption creates more requests for user signers, which is UX friction.
In my use-case I’m storing a push token associated with the users pub key so the user can receive push notifications for events that happen when they’re not in the app. I just read nip-78 but it seems not quite right for this particular use-case as I, on the server side, need to query my db for a set of users pubkeys to get their push token to send notifications?