Back

How to check if account (only email) is already registered?

  • 0
  • Flutter
  • Functions
  • Accounts
Ipsoka
27 Mar, 2023, 17:50

Hey I'd like to check if an account is already registered by letting the user of the app only enter the email. Which endpoint do I need to hit to get this data, or do I have to write my own cloud function for that?

TL;DR
There are two suggestions provided in the support thread. 1. Use an example implementation from this GitHub repository: https://github.com/appwrite/demos-for-react/blob/12953066814f2116b1d5bd11f3526c2de07dbd04/example-auth/src/appwrite.ts#L40. This example helps check if the user already exists during signup. 2. Use a cloud function from the Appwrite documentation to list users: https://appwrite.io/docs/server/users?sdk=python-default#usersList. You can pass the email as a parameter to check if the account is already registered.
rafagazani
27 Mar, 2023, 18:02

Hello, you will need a cloud function https://appwrite.io/docs/server/users?sdk=python-default#usersList use the parameter I want passing the email

joeyouss
27 Mar, 2023, 18:40

Hi πŸ‘‹ ,if you are looking for an example of implementing a check: https://github.com/appwrite/demos-for-react/blob/12953066814f2116b1d5bd11f3526c2de07dbd04/example-auth/src/appwrite.ts#L40

from this repo: https://github.com/appwrite/demos-for-react/tree/master/example-auth

this might give you a good idea too, it helps check at the time of sign up if the user exists already which I think suits your use case

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more