Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Allow user to switch accounts without resetting browser state #137

@JairusSW

Description

@JairusSW

It's a small issue, but every time I want to switch between my personal and work Hypermode accounts, I typically have to manually navigate to hypermode.com and log out via the website or clear my browser cache for hypermode.com.

The reason is that when running hyp login, it automatically opens in the browser and logs you in to whatever account on hypermode.com, making hyp logout somewhat redundant.

Here's an example below:

Image

Describe the solution you'd like

When a user logs out using hyp logout and then logs back in with hyp login, it shouldn't automatically log into the last account used (or whatever they are signed in as on hypermode.com).

Conventionally, most CLIs will ask the user to either open the link in their browser or press enter to automatically open the browser.
An example taken from NPM:

Image

This is done so that if needed, the user can paste the link in an incognito window when wanting to switch accounts.

It should also be noted that quite often, opening the browser programmatically does not work on WSL, so users on WSL will be barred from logging in.

Alternatively, the login page can simply ask before authenticating so that the user can authenticate the account of their choice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions