Skip to content

auth: point sign-in hints at doctl auth login - #2098

Merged
anup-deka merged 2 commits into
digitalocean:mainfrom
dfinn5-do:auth-hints-point-at-login
Nov 4, 2026
Merged

anup-deka merged 2 commits into
digitalocean:mainfrom
dfinn5-do:auth-hints-point-at-login

Conversation

@dfinn5-do

@dfinn5-do dfinn5-do commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Browser sign-in is the default way to authenticate, so these hints for signed-out users now suggest doctl auth login instead of doctl auth init:

  • the welcome screen from running doctl with no arguments
  • the next step shown for a 401 from the API
  • the tip on 401s from the agents commands

Coding agents follow these hints too. doctl auth init is unchanged for token users.

Testing

Updated expectations in commands/error_test.go, commands/welcome_test.go, commands/agents_test.go, and integration/auth_test.go.

dfinn5-do and others added 2 commits November 3, 2026 09:40
Browser sign-in is the default way to authenticate now, but the welcome
screen, the 401 error hint, and the agents 401 tip still sent people to
doctl auth init and its token prompt.
@anup-deka
anup-deka merged commit ce33fbc into digitalocean:main Nov 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址