Google OAuth 2 authorization - swapping code for token

后端 未结 3 1797
滥情空心
滥情空心 2021-01-02 17:15

I\'m trying to implement Google OAuth 2 to get access to Google APIs. I follow this guide, using server-side scenario.

I have no problem with getting the code, serve

3条回答
  •  礼貌的吻别
    2021-01-02 17:53

    Happens when you use wrong Client secret. Make sure you are using correct Client secret from Google API console. I was using Email address since API console displays the information in the following order:

    1. Client ID
    2. Email address
    3. Client secret

提交回复
热议问题