Seems like auth from Google with Supabase doesn't protect "protected pages" in editor mode

Hi there !

I briefly introduce myself : Axel, French Fullstack developper working as cto for a non-tech company. I mainly use stack like Node.js / Express / React.js etc… But I’m also used to to work with some No-code tools like Airtable / Zapier / Make and some others.

Today with my team we’re planning to build a project/building-site management app potentially based on Supabase <> Weweb.

As we are testing these tools we are facing some issues :

  1. We wanted to integrate Google Auth via Supabase. So we created a login page following the tutorial made by Quentin :clap: . When I turn on preview mode, I access the login page and when I Click the login button, I am redirected toward the Google Popup, I can connect and I’m redirected to the protected page I want. It’s nice, but : I can see in the variable that I’m not logged in. And if I try to connect with another Google account (which is not part of the members list) I can still access the protected page. What am I missing here ?

  2. This point is not related to the previous one but, with grid components how to enable inline editing without having to click on the “modify icon” ? (If needed, I can open a new topic for this question ?)

Thanks in advance for your help,

Axel

Well you’re in the editor

So it’s normal ? I can’t test specific auth workflow to work as expected with free plans ?
Based on the tutorial, I thought I could :face_in_clouds:

I think in the editor it’s all open, but I might be wrong. On published it works for sure, I’ve got projects like this.

1 Like

Looks like you were right @Broberto !
Capture d’écran 2023-09-19 174326

1 Like

Indeed :joy: I very often am after so many hours on WeWeb. Good job on asking Copilot tho, wouldn’t have thought of that.

1 Like

Haha nice one @Broberto! Once more, you are correct :smile:

FYI, it’s a choice we made for authentication plugins to smoothen the building process in the Editor @Axel-EDL because it was hard for non-admins to build the app otherwise.