Skip to content

Better explanation on OTP#24

Merged
zkat merged 1 commit intonpm:release-nextfrom
jdeniau:otp-explanation-on-more-endpoints
Jul 20, 2018
Merged

Better explanation on OTP#24
zkat merged 1 commit intonpm:release-nextfrom
jdeniau:otp-explanation-on-more-endpoints

Conversation

@jdeniau
Copy link
Copy Markdown
Contributor

@jdeniau jdeniau commented Jul 20, 2018

Re-import of npm/npm#21119

Use the defaut OTP explanation everywhere except when the context is "OTP-aware" (like when setting double-authentication).

@zkat I followed your recommendation about npm login, I just changed the message a little to be more understandable than the previous one, but not as verbose as the default one ;)

@jdeniau jdeniau requested a review from a team as a code owner July 20, 2018 19:52
Use the defaut OTP explanation everywhere except when the context is
"OTP-aware" (like when setting double-authentication)
@jdeniau jdeniau force-pushed the otp-explanation-on-more-endpoints branch from 1a00846 to 7a3629b Compare July 20, 2018 19:54
Copy link
Copy Markdown
Contributor

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for recreating the PR. This looks great, and the rewording is 💯!

LGTM 👍

@zkat zkat changed the base branch from latest to release-next July 20, 2018 22:03
@zkat zkat merged commit 21cf0ab into npm:release-next Jul 20, 2018
@jdeniau jdeniau deleted the otp-explanation-on-more-endpoints branch July 21, 2018 08:11
Jah-yee pushed a commit to Jah-yee/cli that referenced this pull request Apr 16, 2026
…non-interactive setup UX (npm#30)

* fix: narrow default OAuth scopes to avoid restricted_client, add --full flag, improve non-interactive setup UX

Fixes npm#24, npm#25

- DEFAULT_SCOPES now aliases MINIMAL_SCOPES (no pubsub/cloud-platform)
  which avoids Google's restricted_client 403 on unverified OAuth apps
- Add FULL_SCOPES and --full flag for users who need the broader set
- Replace cryptic 'run setup interactively' error with step-by-step
  manual OAuth console instructions including URLs, options A/B/C

* chore: add changeset

* chore: cargo fmt

* fix: refactor format! with backslash continuations to concat! macro

Address Gemini review (PR npm#30): replace hard-to-read backslash line
continuations in large format! macros with concat! for clearer structure:
- manual_oauth_instructions(): full step-by-step guide
- stage_configure_oauth() wizard show_message: interactive prompt text

No functional change; output text is identical.
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