#Checking if a phone number already exists while signing for otp.

2 messages · Page 1 of 1 (latest)

naive harbor
#

Hi, my app uses only phone number based OTP authentication. As far as I know, appwrite creates a new user if a user is not present with that phone number. And I want the client to get an error if the phone number they gave is already registered. Is there a way to achieve this in appwrite?

olive venture
#

you can use functions with server API to check if user with phone already exists or not. And you can call function using client SDK.