SIMBAChain / libsimba.py-platform

MIT License
1 stars 0 forks source link

Catch token expiry #4

Open whelks-chance opened 3 years ago

whelks-chance commented 3 years ago

Copy/paste this:

https://github.com/SIMBAChainDev/simba-etl-upload-utils/blob/master/upload_utils.py#L11

If reading from file, check not expired, otherwise renew. When writing to file, write expiry datetime too.

abrinckm commented 3 years ago

@whelks-chance will do. I'll see if I can get this working tonight

whelks-chance commented 3 years ago

I've pushed an update to this, tokens are now in file and memory, and expiry is detected.