From 5df9bc39ac48fdf1b19b00b9b457f9ebc1ee157c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 8 Oct 2026 12:15:15 -0700 Subject: users: keep the encrypted nostr key and 2FA seed away from bearer tokens /me and user emits return a hasnsec flag instead of the encrypted key, which is now only sent with a password login or registration. /otpsecret refuses once 2FA is enabled, and disabling 2FA rotates the seed. Co-Authored-By: Claude Opus 5.5 --- lib/whitelist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/whitelist.ts b/lib/whitelist.ts index d0acb0c4..f305f516 100644 --- a/lib/whitelist.ts +++ b/lib/whitelist.ts @@ -14,6 +14,7 @@ export default [ "fresh", "followers", "follows", + "hasnsec", "haspin", "hasprinter", "id", @@ -28,7 +29,6 @@ export default [ "nip5", "notify", "npub", - "nsec", "payments", "picture", "profile", -- cgit v1.2.3