Redirect URL configuration

Hi,

In my web app, I’m using Login with LinkedIn for Auth with Supabase. I have set up the URL configuration in Superbase which allows me to redirect to the right page post-auth.

I am having issues using different auth flows. For example:
  • If I log in from the staging website, I would like the Supabase Auth to redirect to the staging website post auth.
  • If I log in from the production domain, I would like the Supabase Auth to redirect to the production domain
What I have tried:
  • I set the site URL to the production domain and added Redirect URLs to the staging domain- I am using Weweb for the front end builder and there I have a condition to check the URL where the button is being clicked and have set the redirect URL based on the base URL calling the auth function
Issue:- The redirect always defaults to a page on the site URL and ignores the other redirect urls

Any pointers on how I can implement conditional authentication flows?
Was this page helpful?