© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
1 reply
Lellantos

WeWeb And Google Supabase Auth Not redirecting/Authenticating

🤷otherauth🟡javascript
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();
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:
- the editor links with both wildcard options for both projects( eg. https://examplewewebeditorlink.co.uk/* and https://examplewewebeditorlink.co.uk/**)
- the live URL we want the user to navigate to ( this is also currently the Site URL)

2) When redirected it is not authenticating in the editors but is in the live app.

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.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Preventing Google User Signup with Supabase RLS in WeWeb
SupabaseSSupabase / help-and-questions
13mo ago
Authenticating third-party services using Supabase Auth
SupabaseSSupabase / help-and-questions
7mo ago
Supabase UI Social Auth not redirecting to protected route
SupabaseSSupabase / help-and-questions
2w ago
Supabase + Google Auth + Calendar and Meet Access
SupabaseSSupabase / help-and-questions
6mo ago