codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)
88 stars 23 forks source link

Add persistent credentials storage #36

Closed kevdliu closed 11 months ago

kevdliu commented 11 months ago

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 commented 11 months ago

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

codetheweb commented 11 months ago

Released in v0.8.0.