Floo
March 25, 2024, 3:20pm
1
Hi !
But it seems I have no refresh token.
I have to "Reconnect with Auth" every day
In Google Console
Is there a trick to keep an oauth for 3 years?
My best!
Paulo
April 1, 2024, 10:03pm
2
Hi @Floo , let's try changing the "Prompt" setting for the OAuth 2.0 Part.
From our docs :
"Google requires the URL parameters access_type=offline
and prompt=consent
to obtain refresh tokens, so you should include these in your Auth URL variable."
Change the "Prompt" from "None" to "Consent"
That should do the trick.
Let us know how it goes!
1 Like
Floo
April 2, 2024, 10:34am
3
Oh thank you!
I try it and say here if it works
Floo
April 3, 2024, 4:52pm
4
It seems to work!
Thank you very much <3
What do you think about adding this information in the documentation here
and here
(in the shared OAuth tab) ?
If you need a persistent authentification set the `prompt` to `Consent`, it allows Retool to get the refresh tokens.
Have a nice day!
Paulo
April 3, 2024, 8:27pm
5
Thank you for your feedback! I'll extend it internally.