Using Refresh Token Exception { “error” : “invalid_grant” }'

后端 未结 6 1504
北荒
北荒 2020-12-16 22:12

I\'ve successfully built an application that fetches an access and refresh token.

In my script I check if the access token is valid and if not I then use the refresh

6条回答
  •  春和景丽
    2020-12-16 22:35

    Google now has a dedicated page in their API guide for this error where it says there are only 2 reasons for this...

    • Your server's clock is not in sync with network time protocol - NTP.
    • The refresh token limit has been exceeded.

    The limit for each unique pair of OAuth 2.0 client and Google Analytics account is 25 refresh tokens. If the application continues to request refresh tokens for the same Client/Account pair, once the 26th token is issued, the 1st refresh token that was previously issued will become invalid.

提交回复
热议问题