Hi there,
I am trying to make a sign-up and login for (for example) customers and staff. I want to seperate the users by using two tables with auth enabled Table: customers and table: staff.
What would in general be the approach in Xano and Weweb, were I am planning to use the Xano Auth plugin and the generated SignUp an login forms, and preferably use a single login page?
- can I add the weweb Xano auth plugin 2 times or should I use the rest API plugin?
- How to distinguish the user type (customer vs staff) on Signup? Should I just use two different signup pages or add an extra input variable (singup as ...customer or staff). Can I also sign up without directly retrieve a token? User should login first
- How to use a single login page: should I expand the function stack of the login endpoint, by first searching the user in table: customers and if not found, search the table: staff?
Thanks for help.