An admin user should be able to create accounts for other users (other admins or staff) in the Manage Staff page (including creating a password and using an email).
- These creations will be done using createUser, which should create a user's authentication data (in the auth.users and public.Users tables).
- User's data:
type (admin or staff), email, name (optional), and password.
- This function should then be used inside the Manage Staff page when admins press "+ New User".
Follow this Perplexity guide on how to do this: Supabase Auth Updates Perplexity Guide
An admin user should be able to create accounts for other users (other admins or staff) in the Manage Staff page (including creating a password and using an email).
type(adminorstaff),email,name(optional), andpassword.Follow this Perplexity guide on how to do this: Supabase Auth Updates Perplexity Guide