cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
542 stars 126 forks source link

Prevent access token expiring edge case #71

Closed mledford closed 7 years ago

mledford commented 7 years ago

It is possible for the access token to expire just as it is retrieved from the cache and then fails during the request. Prevent this from occurring by indicating to the cache that the ttl is lower than the actual token ttl.