Google-api-php Refresh Token returns invalid_grant

前端 未结 5 680
离开以前
离开以前 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条回答
  •  萌比男神i
    2020-12-31 18:18

    The invalid_grant means either means that the authorization code has already been used (available in $GET['code']) or the type of application configured in the Google APIs Console is invalid.

    Make sure you select "Web Application" when registering your app in the Google APIs Console.

提交回复
热议问题