Weweb staging page redirects are not working

Hi,

I have app that was built and, when I run it on Editior I can login to the app using superbase Auth.

But when its on staging, all the functions are working and I can see it on superbase log, but on weweb doesnt redirect the user to the Home page when user is authenticated.

Hi @SNeJ :wave:

In the WeWeb editor, you will be able to navigate to private pages even if the user is not logged in or doesn’t have the proper role to access a private page. So it might be a false impression that it’s working.

Can you show us the login workflow in action in WeWeb?

Do you see the user variable isAuthenticated with a true or false value?

If you see it as true, perhaps there’s an issue with the role of the user. Can you check if there’s a specific role attached to the private access of the page?

1 Like

What I was missed to inform is, this happened when we move the project to a different workspace.

I have removed the Superbase Auth Plugin and Re-added to the project. Then it started working as it should be.

1 Like

Ah ok, perfect! Glad you found a solution!

1 Like