dub
dub copied to clipboard
[FEAT] Switch accounts
I enjoy using Dub for both work and personal projects.
For security reasons, both live in 2 separate accounts, and the current switching experience is painful: you have to logout/login consistently.
I'd like to be able to quickly switch between multiple accounts.
I would like to take this up @steven-tey . I've coded the rough frontend for it but would like to go over the implementation of managing sessions for different users. On adding an account, I was planning to store the account details using context api, such as the provider(oauth etc), and during an account switch, i call the sign in method of next-auth. Although i was wondering about the security implications via this approach?
https://github.com/dubinc/dub/assets/54001108/ae39ba71-6bd8-43eb-b52d-31b450029d2f
Hey @rishikaul22, Have you implemented it completely?
@rishikaul22 sorry for the late response here – do you have a PR ready for this? Would love to take a look!
@rishikaul22 sorry for the late response here – do you have a PR ready for this? Would love to take a look!
Hey @steven-tey, he's not replying. Can I work on this feature?
Sure, go ahead! @anirbanpaulcom 🙏