dub icon indicating copy to clipboard operation
dub copied to clipboard

[FEAT] Switch accounts

Open fmerian opened this issue 11 months ago • 6 comments

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.

fmerian avatar Mar 15 '24 08:03 fmerian

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

rishikaul22 avatar Mar 26 '24 17:03 rishikaul22

Hey @rishikaul22, Have you implemented it completely?

anirbanpaulcom avatar Apr 13 '24 08:04 anirbanpaulcom

@rishikaul22 sorry for the late response here – do you have a PR ready for this? Would love to take a look!

steven-tey avatar Aug 06 '24 22:08 steven-tey

@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?

anirbanpaulcom avatar Aug 09 '24 04:08 anirbanpaulcom

Sure, go ahead! @anirbanpaulcom 🙏

steven-tey avatar Aug 10 '24 02:08 steven-tey