MaxHasADHD / TraktKit

Swift wrapper for Trakt.tv API.
MIT License
112 stars 37 forks source link

Refresh access token automatically #44

Open hegedus90 opened 4 years ago

hegedus90 commented 4 years ago

Is it possible to refresh the access token automatically? Something like:

I wonder if it's possible to insert such logic into your library's mutableRequest methods because I'm not fully aware of the architecture of the project. Let me know your thoughts!

As I've already contributed to your project, I'm keen to make a PR based on our discussion here.

Thank you,

Attila (author of MoviX app)

MaxHasADHD commented 4 years ago

Hi there! I think that sounds like a good idea. Putting it in a place that happens automatically for all API calls sounds great too