I am trying to find out why the refresh token expires early, or return the error "League\OAuth2\Server\Exception\OAuthServerException: The refresh token is invalid" on the date 18, 2019 - 13:01. But in the Access Token list I can see the token and the refresh token generated on the same date 18, 2019 - 13:01. My refresh token expires in 24 hours and my token in one hour, since the first login of my application, the administration of a new token works around 4 or 5 updates, but for the following one the error appears "The update token is not valid", and I must log in again to my application.

Comments

rubenjara created an issue. See original summary.

rubenjara’s picture

Status: Active » Closed (won't fix)

This occurs when the server has a very long response time to save the tokens in my app, I see that CRON is running at the time of the update, I think that is the reason why the server takes a little longer than normal to respond. My solution, increase the waiting time in my app by at least 20 seconds.