Google-api-php Refresh Token returns invalid_grant

前端 未结 5 673
离开以前
离开以前 2020-12-31 17:58

I\'ve nearly searched every result of the first page of google for this. But can\'t seem to find the answer. I\'m working with a refresh_token by Google\'s API and receiving

5条回答
  •  轮回少年
    2020-12-31 18:12

    I ran into something similar and the problem for me was my system clock (inside the Docker VM where I was running the code) was not synchronized with the real time. So you are requesting a token with a created date too far in the past or future, which OAuth is rejecting.

    I was tipped of by the report here.

提交回复
热议问题