pnbruckner / life360

A simple python life360 client
MIT License
16 stars 6 forks source link

Save credentials in cache file and check when reading #3

Closed pnbruckner closed 5 years ago

pnbruckner commented 5 years ago

In addition to authorization string, save credentials (api_token, username & password) to cache file. Then when loading, check to see if credentials are the same. If so, then use the cached authorization string. If they've changed, then throw away cache file and re-authorize.