• Prompts the user to select from existing sessions or log in with a different account.

    • If alias is provided, tries to switch to that session directly
    • Otherwise, shows a prompt with all available sessions and the option to log in with a different account.

    Parameters

    • Optionalalias: string

      Optional alias of the account to switch to.

    Returns Promise<string>

    Promise with the alias of the chosen session.