I’m working in building an Oauth application in PHP, and I’m not the best, and this is my first time doing it.
I’ve managed to get the first part done, where I can authenticate the app and get a valid Access Token, but when I try to refresh the token, I’m getting this error:
We adjusted the refresh token lifetime length when we migrated from Mashery to Apigee, since the move increased the capabilities that we could take advantage of but were being held back by having to wait six months for changes to guarantee a complete token cycle-out.
Best-practice for security will be to have the refresh tokens last only marginally longer than access tokens (here’s Google Apigee’s guide on the matter), but we determined that going from six months to two days in a narrow window would probably be unnecessarily disruptive.