Access Token and Refresh token giving invalid grant in Google Plus in Python?

前端 未结 5 866
野的像风
野的像风 2020-12-18 04:35

I am correctly scoping for offline access and am storing that. Every 60 minutes, when needed, I retrieve a new access_token. Code has not changed, but what is odd is that wh

5条回答
  •  悲哀的现实
    2020-12-18 05:00

    I had a similar issue and was getting an "invalid_grant" response. Turns out I was making the initial OAuth call with grant_type="client_credentials" and I should have been making it using grant_type="password". Wanted to share the solution which worked for me.

    More explanation between the grant_types could be found below

    Difference between grant_type=client_credentials and grant_type=password in Authentication Flow?

提交回复
热议问题