Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

sentry init does not trigger auto-auth fallback #1383

Closed

Description

@sentry-junior

When sentry init detects a missing auth token during pre-flight readiness, it fails with "No authentication token found" and tells the user to run sentry auth login manually instead of using the existing interactive auto-auth recovery path that other commands use.

  • Other commands surface missing/expired auth as AuthError, which the CLI auto-auth middleware recovers from via recoverWithAutoLogin (packages/cli/src/lib/auto-auth.ts, wired in packages/cli/src/cli.ts).
  • sentry init checks auth up front in packages/cli/src/lib/init/readiness.ts and exits on missing token without throwing a recoverable AuthError.
  • Observed failure: prerequisites fail with "No authentication token found." / "Setup failed", then suggest sentry auth login.

Reported by Dhrumil Parekh.

Requested by Burak Yigit Kaya.

--

View Junior Session [Sentry]

Activity

  1. added
    bug
    jared
    on Aug 6, 2026
  2. BYK commented on Aug 7, 2026

    @BYK
    Member

    Jared?

  3. added a commit that references this issue on Aug 7, 2026
    f349372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugjared

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions