Error type invalid_grant and OAuth code is invalid - PHP

Answered

Comments

2 comments

  • Andreas Haugstrup Pedersen

    Hi Rafael,

    You can find guides to authentication at: http://podio.github.io/podio-php/authentication/

    /Andreas

    -1
    Comment actions Permalink
  • Rafael Mariano

    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;

    ...

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk