stacker.news/pages/api
ekzyis 6bae1f1a89
Fix account switching anon login (#1618)
* Always switch to user we just logged in as

If we're logged in and switch to anon and then use login to get into our previous account instead of using 'switch accounts', we only updated the JWT but we didn't switch to the user.

* Fix getToken unaware of multi-auth middleware

If we use login with new credentials while switched to anon (multi_auth.user-id === 'anonymous'), we updated the pubkey because getToken wasn't aware of the switch and thus believed we're logged in as a user.

This is fixed by applying the middleware before calling getToken.
2024-11-20 07:05:42 -06:00
..
auth Fix account switching anon login (#1618) 2024-11-20 07:05:42 -06:00
lnurlp/[username] Implement deposit as receive paidAction (#1570) 2024-11-15 18:38:14 -06:00
log Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
nostr Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
ots Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
daily.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
graphql.js Fix account switching anon login (#1618) 2024-11-20 07:05:42 -06:00
lnauth.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
lnwith.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
signout.js Fixes around account switching / authentication (#1575) 2024-11-11 09:16:32 -06:00
site.webmanifest.js Remove orientation from manifest (#483) 2023-09-11 14:58:41 -05:00
web-app-origin-association.js Make the web manifest dynamic to incorporate preferred color scheme (#398) 2023-08-15 12:58:27 -05:00