diff options
| author | Adam Soltys <[email protected]> | 2026-10-08 12:15:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-08 12:15:15 -0700 |
| commit | 5df9bc39ac48fdf1b19b00b9b457f9ebc1ee157c (patch) | |
| tree | c8899d20fceed99af4eec492b34be1e5e8f76709 /lib | |
| parent | 621cb7b6ae6655db60971f248d2e799dbb8c4b3d (diff) | |
| download | coinos-server-5df9bc39ac48fdf1b19b00b9b457f9ebc1ee157c.tar.gz coinos-server-5df9bc39ac48fdf1b19b00b9b457f9ebc1ee157c.zip | |
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 <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/whitelist.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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", |
