Im trying to set up Oauth with Google backed by Supabase, and Im having trouble getting this to work in Test mode. The flow looks more or less correct but I'd rather not push this out till I can really test it out.
The flow looks like this
Call to supabase with provider=google to initiate the flow (from a button click)
Redirect to accounts.google with the oauth creds
Redirect to callback url on supabase with the generated session tokens
Supabase redirects to {site_url}#access_token=BLAH etc to populate the session info
The seems reasonable except that this means that as soon as I finish the flow my ui contents switch (very subtly) form the test app to the live deployed web app. It makes it very hard to test login flows without deploying them to my main app.
I believe the issue is a result of a lack of a redirect URL being included in the request to supabase. The site_url is only used if no matching redirect url is provided, and flutterflow provides no mechanism to specify a redirect URL in the Auth/Create Account action. Has anyone handled this issue?