Error type invalid_grant and OAuth code is invalid - PHPAnswered
How to avoid the error: "Error type invalid_grant and the message Sorry , your OAuth code is invalid . " , With the session handling ? I have this:
My url is with a value for "code " and when I update the page appears this error.
You can find guides to authentication at: http://podio.github.io/podio-php/authentication/
Managed to solve , but unfortunately did not find sufficient contributions to solve this problem. Solution : You should pass a parameter in the authenticate ( ) function with the value ' refresh_token ' to ' grant_type ' , as:
case ' refresh_token ':
$ data [' grant_type '] = ' refresh_token ' ;
$ data [' refresh_token '] = $ attributes [' refresh_token '] ;
Please sign in to leave a comment.