wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Multi-session support (account switching)

Open infomiho opened this issue 5 months ago • 0 comments

Some services allow users to easily switch between multiple accounts without logging out and logging in again. Think, Google and multiple different Google accounts in a drop down.

Wasp Auth could support that kind of feature on multiple levels:

  • high level feature that we maintain
  • low level APIs that enable users to implement the feature (makes more sense to start with this)

What kind of low level APIs? Since Wasp's session ID is stored in localStorage this means that users that cleverly manipulate the localStorage value (store the session ID list somewhere else and swap it out when needed) can implement this already. Wasp could expose some sort of getAllSession and setActiveSession helpers that could make implementation of this smoother.

Related Discord thread: https://discord.com/channels/686873244791210014/1279123357253763144/1280199137106591836

infomiho avatar Sep 03 '24 11:09 infomiho