How i get the refresh token of google provider?
# support-questions
w
How i get the refresh token of google provider?
r
During sign up / in, we provide you a way to get all the info that google sends
Which recipe are you using?
w
ThirdPartyEmailPassword
In "thirdparty_auth_response" I get access_token, expire_in, scope, token_type and id_token, but not receive the refresh_token
r
I think u will have to enable offline access for that. There must be some setting to add when querying google
w
I didn't find how to do this in supertokens, do you know where I can override the query?
r
See the options you can give to google.init
w
Found it, but it's already set to offline
r
Hmmm. What does google docs say for getting a refresh token?
w
It just says to set the access_type to offline
the default is actually offline
r
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
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