#check if the user exists before logging in with oath2

15 messages · Page 1 of 1 (latest)

tall flame
#

i want to check if the user exists right now appwrite automaticaly creates an account for the user

primal lintel
tall flame
#

i am using googleAuth and when a user registers i ask there role but when they loggin with google without ever having an account google appwrite creates an account for them without role

tall flame
#

i want to check if the user exists before logging them in

primal lintel
tall flame
#

but i have to check if the user exists before logging them i have an oath google and on sign in page when they click google instead of checking if the user exists it automatically creates an account for them what i want it check if the user exists and log them in if the user doesn't exist don't create account just notify they don't have accont

primal lintel
#

This will prevent accounts from being created

tall flame
#

but how do i check if the user exists?

primal lintel
tall flame
#

so what is the solution?

tall flame
#

okay but there is a registration page where users can register with credentials or with google oath is it going to affect that

primal lintel