Made some progress on account switching and interested in feedback, if there's any.
With this feature, you'll be able to switch between accounts. @sn and @kr or @hn and me are good examples:
Currently, I always create an incognito tab to login as @hn to keep my session as @ekzyis alive. Now, I will be able to login as @hn within my session as @ekzyis. So if there are stackers out there with multiple nyms: this feature is for you!
However, keep in mind that in theory, we would be able to link your accounts. We haven't found a secure and private solution. See discussion in the PR.
The changes in this pull request should also make anon UX better since you no longer will have to logout to post anonymously. You can just switch to anon and then when you're done, you will be able to return to your session.
Again: anonymously means here you're anonymous in front of other stackers. You're trusting us that we don't log request cookies if you use this feature to post as @anon. If you logout and then post as @anon, the only way for us to find out who you are is to compare IP addresses. Which is always something you trust services to not do. Or simply use a VPN.
For video showcase, click here.
loginsession tokens (JWTs) per account (multi_auth.<userId>
).