Skip to content

Reuse otper-cli saved config; document token URL - #2

Merged
sambhav-aggarwal merged 1 commit into
mainfrom
feat/reuse-otper-cli-config
May 4, 2026
Merged

Reuse otper-cli saved config; document token URL#2
sambhav-aggarwal merged 1 commit into
mainfrom
feat/reuse-otper-cli-config

Conversation

@sambhav-aggarwal

Copy link
Copy Markdown
Member

Plugin now falls back to otper-cli's saved login (~/.otper-cli/...) if no plugin config or env var is set. README links to https://otper.com/settings/tokens.

- shared.ts now delegates to resolveConfig() from otper-cli, which
  walks plugin-config → OTPER_TOKEN env → ~/.otper-cli/<profile>/
  config.json. A single 'otper auth:login' now serves both the CLI
  and this plugin.
- README points at https://otper.com/settings/tokens for token
  generation and documents the three-way config resolution.
@sambhav-aggarwal
sambhav-aggarwal merged commit df8d202 into main May 4, 2026
@sambhav-aggarwal
sambhav-aggarwal deleted the feat/reuse-otper-cli-config branch May 4, 2026 09:09
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.

1 participant