peburrows / goth

Elixir package for Oauth authentication via Google Cloud APIs
http://hexdocs.pm/goth
MIT License
289 stars 111 forks source link

Force refresh whenever token retrieved from ets is expired #141

Closed martosaur closed 2 years ago

martosaur commented 2 years ago

Whenever host machine goes to sleep there is a chance Goth will not refresh token. For cases like this we want to force refresh if the token retrieved from the ets is expired.

See https://github.com/peburrows/goth/issues/134#issuecomment-1190539099

wojtekmach commented 2 years ago

Thank you!

tomtaylor commented 2 years ago

Do you think we could get a new release cut with this? It's producing quite a lot of noise in our development environments! Thanks 🙏

wojtekmach commented 2 years ago

done!