Error type invalid_grant and OAuth code is invalid - PHP
AnsweredHow to avoid the error: "Error type invalid_grant and the message Sorry , your OAuth code is invalid . " , With the session handling ? I have this:
{
"access_token":"adsdwgwde34weggfefds148b8866a8",
"refresh_token":"b7a399fg44fh0a70f253efa822b2e",
"expires_in":28800,
"ref":{
"type":"user",
"id":2740557
}
}
My url is with a value for "code " and when I update the page appears this error.
Thanks
-
Hi Rafael,
You can find guides to authentication at: http://podio.github.io/podio-php/authentication/
/Andreas
-
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 '] ;
break;...
Please sign in to leave a comment.
Comments
2 comments