Skip to content

Show helpful OAuth setup instructions when client_secrets is missing#5

Merged
wesm merged 1 commit intomainfrom
clarify-oauth-setup-cli
Feb 2, 2026
Merged

Show helpful OAuth setup instructions when client_secrets is missing#5
wesm merged 1 commit intomainfrom
clarify-oauth-setup-cli

Conversation

@wesm
Copy link
Copy Markdown
Owner

@wesm wesm commented Feb 2, 2026

Summary

  • Replace the cryptic oauth.client_secrets not configured in config.toml error with step-by-step setup instructions and a link to the OAuth guide
  • Extract a shared errOAuthNotConfigured() helper in root.go used by all 5 commands that check for client secrets
  • Make the OAuth prerequisite more prominent in the README Quick Start section

Fixes #1

Test plan

  • Run msgvault add-account foo@bar.com without configuring OAuth → verify helpful multi-line error with setup link
  • make build succeeds
  • README Quick Start reads clearly with the prerequisite callout

🤖 Generated with Claude Code

Fixes #1. Replace the cryptic "oauth.client_secrets not configured in
config.toml" error with step-by-step setup instructions and a link to
the guide. Also make the OAuth prerequisite more prominent in the README
Quick Start section.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wesm wesm force-pushed the clarify-oauth-setup-cli branch from f1b8e12 to d07dbf0 Compare February 2, 2026 17:22
@wesm wesm mentioned this pull request Feb 2, 2026
@wesm wesm merged commit 1d6ba2f into main Feb 2, 2026
1 check 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.

Startup issues

1 participant