Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading token from environment variable #82

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

shantanuraj
Copy link
Member

What does this PR do?

  • 🌳 Read token from TOGGL_API_TOKEN environment variable
  • Environment store overrides keyring store, write and delete operations
    are disabled for the keyring store.
  • This should allow linux users to authenticate and persist their credentials
    in their shell configuration, until we figure out the keyring crate's persistence issue

Gif

linux-penguin

Context

Closes #81

@shantanuraj shantanuraj self-assigned this Dec 10, 2024
- Overrides keyring store, should allow linux users to authenticate
  and persist their credentials in the shell configuration, until we
  figure out the keyring crate's persistence issue

Closes #81
@shantanuraj shantanuraj merged commit a0ad0e4 into main Dec 10, 2024
5 checks passed
@shantanuraj shantanuraj deleted the shantanu/auth-env branch December 10, 2024 11:07
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.

Authentication Token not persisted
1 participant