So say I have a public table users that is created...
# help
s
So say I have a public table users that is created on Auth user signup, and contains some data on user role, what is the best way to check role before logging in, since I have 2 separate clients, one flutter app for consumer users, and a Nextjs app for provider users and an admin user, and want to disallow users from trying to log into a client that isn’t for that user role? Should I just get the email at login form submit and query for user role before calling the auth.signInWithEmail?
n
Hello @Scott Prins! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.