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

Perssist refresh tokens on reboot #2

Open
coolapso opened this issue Aug 8, 2024 · 1 comment
Open

Perssist refresh tokens on reboot #2

coolapso opened this issue Aug 8, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@coolapso
Copy link
Owner

coolapso commented Aug 8, 2024

A new User authentication token must be generated every time the application reboots, while this is not a problem when using application tokens, this becomes a problem when using user tokens in environments where containers often restart, forcing users to manually authorize the application again to issue a new user and refresh token.

Should find a safe way to store both the user access token and the refresh token and persist them through reboots

@coolapso
Copy link
Owner Author

In the meantime a work around is to pre-generate the tokens with twich CLI and provide them as env variable / flag:

https://github.com/coolapso/prometheus-twitch-exporter?tab=readme-ov-file#pre-generated-access-token

@coolapso coolapso added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant