user2445124
user2445124

Reputation:

Google OAuth2 invalid_grant error

When I kept trying to get a token from the API, the error I got was 'invalid_grant', even if the email and the right key were supplied.

Upvotes: 1

Views: 562

Answers (1)

user2445124
user2445124

Reputation:

I found out that the error was due to the fact that the time of my computer was wrong (3 or 4 hours ahead).

So, to get rid of the error you must set the correct time of your computer.

Upvotes: 5

Related Questions