Authentication on google: OAuth2 keeps returning ‘invalid_grant’

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.

Leave a Comment