Store OAUTH2_TOKEN & refresh token in DB

Hi guys!

I need to store OAUTH2_TOKEN & refresh token from users in my DB so it is possible to interact with their google drive in their behalf. I can create the oAuth process with API calls and save the tokens but I would prefer to use the built in Retool ressources. Is that possible?

Thank you!

I don't know about Google, but for the MS Graph, I had to request the offline_access scope along with my openid and profile to get refresh tokens that automatically fetch a new OAuth token for the resource.

Thank you but this is not what I am looking for. I want to get access to the magic keyword after the oAuth process has been done in my ressource sini can store the token in my database

At the end I am implementing a custom oAuth process so I can store the tokens in my database