requests-oauthlib icon indicating copy to clipboard operation
requests-oauthlib copied to clipboard

Compliance fix for tokens that never expire (e.g. Mailchimp)

Open corradio opened this issue 2 years ago • 0 comments

Hello,

I've encountered an issue when integrating with Mailchimp, as it turns out mailchimp tokens never expire. A compliance fix is available here. It is an access_token_response hook, where the expired_in value is set to 3600 instead of 0. The consequence is that when my app is authorized and a token is fetched, I can use that token for 3600 seconds.

The problem is that I'd like to store and use this token once the arbitrary 3600 seconds have passed. Currently, there doesn't seem to be a way around that. Has anyone had the same issue?

corradio avatar Jan 16 '23 15:01 corradio