Sorry, your OAuth grant has expired
Sometimes I see in my log: "invalid_grant: Sorry, your OAuth grant has expired".
First my idea, that's because user revoke permissions in `Podio > Account settings > External app permissions`. I try reproduce it and success i see "invalid_grant: Sorry, your OAuth grant has expired". Ok first reason is found and clear.
After that i goes to google and search "Sorry, your OAuth grant has expired" and I found problem with refresh_token after 28 days, here: https://help.podio.com/hc/en-us/community/posts/206669587-Get-new-refresh-token?Page=1#community_comment_4402778503954 All posts is outdated, and has no answer. Developer docs has no information about "refresh_token" expiration.
Ofcource I update access and refresh token on my side when call "/oauth/token", but some my clients can idle more than 28 days and I want know are they will have problems with access or not.
-
Support give me that's link to stackowerflow: https://stackoverflow.com/questions/41739817/podio-oauth-refresh-token-lifespan
The refresh token can expire if unused for longer than 28 days. Each time you use the refresh token to request a new access token, the timer resets and you have another 28 days before the refresh token expires. If you regularly obtain new access tokens within the 28-day period you can hypothetically use the same refresh token indefinitely.
be careful
Please sign in to leave a comment.
Comments
1 comment