Skip to content

Support multi-account authentication #67

@jaxson

Description

@jaxson

Problem

The CLI authenticates as a single HEY account, but many users have multiple HEY accounts (e.g. personal, custom domain, work). Postings from all accounts appear in box listings, but hey threads and hey reply return 404 for topics belonging to non-authenticated accounts.

Current workaround

Open the app_url in the browser for topics on other accounts. This breaks the CLI workflow.

Proposed solution

Support storing and routing between multiple authenticated accounts, keyed by account_id. When a command targets a specific topic/posting, automatically route to the correct account's credentials based on the account_id field.

Possible UX:

  • hey auth login could support adding additional accounts
  • hey auth list to show all authenticated accounts
  • Commands automatically select the right account based on the posting's account_id
  • Fallback: --account flag for explicit selection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions