WeWeb And Google Supabase Auth Not redirecting/Authenticating

Hi All,
I am hoping you can help as I have been struggling with this for about a week now. I have found little to no solutions from my frantic googling possibly due to using WeWeb as my app builder.

The Setup:
I have a login button that calls A signup workflow. dependent on if the button is pressed from the editor or the live app (embedded in a WordPress webpage) it will use a custom JavaScript step or the Supabase plugin step. The end goal is to use a JS step on both sides as we want to pass in different redirect URL's based on where the user is (editor or production).

The JS step is running this code:
async function start() {
  plugins.supabaseAuth.signInProvider({
    provider: 'google', 
    redirectTo: `https://examplewewebeditorlink.co.uk`, 
    skipBrowserRedirect: false 
  }).then(response => {
    console.log('Google OAuth Sign-In successful:', response);
  }).catch(error => {
    console.error('Error during Google OAuth Sign-In:', error);
  }); 
}
start();

The issues:
1) The redirect link is currently not working.

The site URL in the URL configurator is being used when pressing the button in the live embedded app which uses the plugin step and not the custom JS. The custom JS send you back to the editor you came from and is ignoring the redirectURL provided. I tested this by using the editor link for another project I have and it didn't send me there.

in the whitelist of Redirect URL's I have set up:
This may get fixed once the redirects are working but thought to mention it too as it may be a piece of the puzzle that's causing it.

Many thanks for your help, A description of WeWeb will be in the comments.
Was this page helpful?