Can't get refresh token from Google authorization API

I need setup API for google calendar. I get code after google auth and then paste it here:

But there is no refresh token in response:

How I can get it? Help please

Add this to url: ?prompt=consent&access_type=offline in the authorization url.

Google only return the refresh token on the first login. You need to request the consent again to get it another time. Also, offline is requested to get the refresh token

1 Like