BookOps-CAT / bookops-worldcat

BookOps WorldCat Metadata API wrapper
https://bookops-cat.github.io/bookops-worldcat/
MIT License
35 stars 7 forks source link

tokens don't get refreshed before a request is made #37

Closed klinga closed 3 years ago

klinga commented 3 years ago

In cases where requests are made in a very quick succession (looping over a list) a delay between method's check for expired token and actual request being sent/received is enough for the token to expire which causes the request to fail. .is_expired. method should include at least 1 second padding.

klinga commented 3 years ago

fixed in 1d637c0