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

feat: lock file while read, write and refresh token #299

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

natthan-pigoux
Copy link
Contributor

@natthan-pigoux natthan-pigoux commented Sep 17, 2024

closes #133

Tests can be performed on read/write_credentials, and the client (probably simpler if we do it through get_token directly). Test cases:

  • (read/write_credentials and get_token) multiple processes attempting to read or write to the credentials file simultaneously.
  • (read/write_credentials) credentials file is missing, empty, invalid.
  • (get_token) token exists and is valid, credentials file is missing, empty, invalid, token needs to be refreshed, refresh token valid/invalid.

@aldbr aldbr marked this pull request as draft September 27, 2024 09:54
@natthan-pigoux natthan-pigoux marked this pull request as ready for review November 5, 2024 15:18
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.

Use file locking to prevent multiple processes using the refresh token at the same time
1 participant