Skip to content

staging device-login URL 404s: /device route missing on staging frontend #134

Description

@tonychang04

Live-caught 2026-08-24 during compute e2e. insta login --device on --env staging (CLI 0.0.45) prints:

https://staging.instacloud.com/device?user_code=XXXX

That URL passes Vercel deployment-protection SSO and then hits the app's own 404 ("That page doesn't exist") — the /device approval route is not served by the staging frontend at that host. console.staging.instacloud.com/device is behind the same SSO (unverified whether the route exists there).

Two things to fix:

  1. The staging device-approval page must exist at whatever URL the CLI prints (either add the route to the staging frontend, or point the CLI at the host that serves it).
  2. UX nit from Tony: the device-flow output should label the environment explicitly ("log in to STAGING") so a user can't approve against the wrong deployment.

Workaround that unblocked us: insta login --oauth github (browser OAuth, no console route dependency).

🤖 Generated with Claude Code

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