Hello everyone.
Our team is building an MVP where a key feature is, an user (admin) can create multiple other users (by email and password).
I am using the Supabase, and Supabase Auth pluggins. Now, the sign up with email and password
onviously changes the logged in users (admin’s) session, which makes sense as it wasn’t made for this use case of creating other users.
The pluggins do not give access to the supabase.auth.admin.createUser()
method as far as I have tried, and also, the method requires service_role
mentioned in the supabase docs, and I couldn’t find a way to add that config to the supabase pluggin.
I’ve also tried out creating a backend function add_user
to add a new user to the auth.users table (which works in supabase sql editor), but unfortunately doesn’t work (permission denied) in case of .rpc call by the supabase pluggin instance.
Considering I am new to weweb and no-code in general, am I missing some actions given by these pluggins? So, in this case, I am wondering what could be the course of action in building out this feature.
Any kind of suggestions or insights would be much appreciated. Thanks.