Skip to content

Gmail-style smooth account switching #2

Description

@Muhammedijas981

Users who manage multiple Credlyst accounts (e.g. work@gmail.com and personal@gmail.com) currently have no way to switch between them without logging out and back in. This feature adds a multi-account system where each login session is persisted securely in localStorage (storing Supabase access_token and refresh_token per account). An "Add another account" button is surfaced in the sidebar and mobile profile dropdown. Once multiple accounts are attached, users can swipe up or down on the avatar bubble to switch accounts — the avatar slides out with a smooth spring animation, the Supabase session is swapped silently in the background via supabase.auth.setSession(), and the dashboard reloads with the correct links and categories for the switched account — all without any page reload.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions