Support npub format in ADMINS environment variable for admin authentication #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently, the backend only recognizes hex-encoded public keys in the ADMINS environment variable for admin authentication. However, many users copy and paste their Nostr public keys in the more common npub... bech32 format. If an npub is used, admin access silently fails, which can be confusing and hard to debug
Benefits:
In user-facing applications this pattern is applicable, but not in highly technical contexts.
Yes, thought of not raising an issue, but still did to know your thoughts on it.