Back

[SOLVED] Check if user is registered (with Email)

  • 0
  • Flutter
  • Accounts
Tobias Kietzmann
4 Jan, 2024, 15:39

Is there a way to check if a user is registered within the account api? Firebase has a function for this call "fetchSignInMethodsForEmail".

I want to achive, that a user enters the email adress and conditionally on the result i show a sign in or sign up flow (using Flutter)

TL;DR
User is asking if there is a way to check if a user is registered within the account API. They mention Firebase has a function for this called "fetchSignInMethodsForEmail". They want to achieve showing a sign in or sign up flow based on the result.
ideclon
4 Jan, 2024, 16:27

I think this is generally discouraged, as it helps brute-forcing accounts.

Tobias Kietzmann
4 Jan, 2024, 16:28

I understand the argument - but even Airbnb uses this procedure

Tobias Kietzmann
4 Jan, 2024, 16:29

(and also google uses this..)

ideclon
4 Jan, 2024, 16:52

Sure. So if you do actually want to do this, you could use an Appwrite Function, which would call the users.list() method.

Tobias Kietzmann
4 Jan, 2024, 17:08

Thanks, have to check

Tobias Kietzmann
4 Jan, 2024, 18:12

works really straightforward, thanks!

ideclon
4 Jan, 2024, 18:50

Great! If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title

Tobias Kietzmann
4 Jan, 2024, 19:59

[SOLVED] Check if user is registered (with Email)

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