Authentication on google: OAuth2 keeps returning 'invalid_grant'

后端 未结 6 1465
[愿得一人]
[愿得一人] 2020-11-28 15:23

I started to configure google calendar on my new application. I almost made an exact copy of the authentication code displayed at google developers ( https://developers.goog

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 15:32

    You should reuse the access token you get after the first successful authentication. You will get an invalid_grant error if your previous token has not expired yet. Cache it somewhere so you can reuse it.

提交回复
热议问题