Skip to content

feat: no longer set tokens in the config file#679

Merged
mcncl merged 2 commits intomainfrom
feat/no_set_config_token
Mar 5, 2026
Merged

feat: no longer set tokens in the config file#679
mcncl merged 2 commits intomainfrom
feat/no_set_config_token

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Mar 5, 2026

Description

Text tokens are bad, so we shouldn't set them in the config file anymore

Changes

  • removes the setters from the various commands where login/auth might be performed
  • allows for fallback to a config token where it's already set
    • warns that this shouldn't be done
  • updates tests to reflect changes
  • precedence: env var > keychain > config (read-only)

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

## Description

Text tokens are bad, so we shouldn't set them in the config file anymore

## Changes

- removes the setters from the various commands where login/auth might be performed
- allows for fallback to a config token where it's already set
	- warns that this shouldn't be done
- updates tests to reflect changes
- precedence: env var > keychain > config (read-only)
@mcncl mcncl requested a review from a team as a code owner March 5, 2026 04:11
We don't want people to use it now
@mcncl mcncl merged commit c99b777 into main Mar 5, 2026
1 check passed
@mcncl mcncl deleted the feat/no_set_config_token branch March 5, 2026 20:34
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