https://supertokens.com/ logo
#support-questions
Title
# support-questions
w

Wildson

04/29/2022, 3:05 PM
How i get the refresh token of google provider?
r

rp

04/29/2022, 3:06 PM
During sign up / in, we provide you a way to get all the info that google sends
Which recipe are you using?
w

Wildson

04/29/2022, 4:45 PM
ThirdPartyEmailPassword
In "thirdparty_auth_response" I get access_token, expire_in, scope, token_type and id_token, but not receive the refresh_token
r

rp

04/30/2022, 4:58 AM
I think u will have to enable offline access for that. There must be some setting to add when querying google
w

Wildson

04/30/2022, 11:34 AM
I didn't find how to do this in supertokens, do you know where I can override the query?
r

rp

04/30/2022, 11:46 AM
See the options you can give to google.init
w

Wildson

04/30/2022, 11:52 AM
Found it, but it's already set to offline
r

rp

04/30/2022, 11:54 AM
Hmmm. What does google docs say for getting a refresh token?
w

Wildson

04/30/2022, 11:57 AM
It just says to set the access_type to offline
the default is actually offline
r

rp

04/30/2022, 11:59 AM
Huh.. I think u may have to give some other scope too? I’m not too sure
Maybe open an issue about this on our GitHub and I’ll have a look in the coming days
w

Wildson

04/30/2022, 6:05 PM
Only the first login ever the refresh_token is returned, all others are no longer sent. After removing my app permissions (https://myaccount.google.com/u/0/permissions) and re-authenticating everything went fine. Thanks for your attention.
3 Views