Hey all, I’m doing Google Oauth via Supabase (using this great tutorial). All working nicely, apart from the provider_refresh_token. I’m using the sign in with Oauth workflow, as below:
Unfortunately, WeWeb doesn’t appear to store the provider_refresh_token against the session (only the provider_token). Any suggestions as to how I could access the provider_refresh_token in order to store it in the DB?
Edit: For anyone who reads this in the future.
I solved this by dropping the WeWeb way of authenticating with Google and doing it manually (created a link to the Google oauth system, took the returned code and made a backend workflow to extract the provider token / refresh token / etc.
Seems to be working for now! This was a suitable solution in this case because I don’t actually need Google for signing in, only for accessing a user’s calendar.