'The google auth api doesn't refreshes the auth token using existing refresh token

It says "invalid grant". It usually happens after inactivity for a few days. I'm using the below code :

Response : { error: 'invalid_grant', error_description: 'Bad Request' } endpoint : https://oauth2.googleapis.com/token

payload : refresh_token, client_id, client_secret, grant_type = refresh_token



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source