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

Add persistent credentials storage #36

Merged
merged 12 commits into from
Nov 5, 2023
Merged

Conversation

kevdliu
Copy link
Collaborator

@kevdliu kevdliu commented Nov 3, 2023

This PR updates the library to follow oauth best practices. The client ID, access token, and refresh token are encrypted with AES-256 encryption using the account password and then stored to disk. Tokens are automatically refreshed when we receive a 401 from the endpoints.

@kevdliu kevdliu requested a review from codetheweb November 3, 2023 15:58
@kevdliu kevdliu self-assigned this Nov 3, 2023
@kevdliu
Copy link
Collaborator Author

kevdliu commented Nov 5, 2023

I've been running this for a few days with no issues. Merging.

@kevdliu kevdliu merged commit 14be478 into codetheweb:master Nov 5, 2023
@kevdliu kevdliu deleted the auth_fix branch November 5, 2023 20:56
@codetheweb
Copy link
Owner

Released in v0.8.0.

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