Fetching user collection to compare that with user input.

Actions & Logic

Hello Everyone, I am working on an app that will have two security questions that a user can choose on their own. Now, for these two what the users will input must be unique for each user. So, I will have to compare these inputs with the ones that are already in the database and restrict if we have any in the database if not then let the user create an account with those answers else show a bottom sheet that says this is already used try a new one.

I got stuck on how to get the data from firebase and compart it with the user input as it is not considered auth. Also, do I need to have this action on those questions or create account button action?

I would like to know if anyone can guide me in any possible way. Thank you in advance.

What have you tried so far?

I have gone through lot of community discussions and FlutterFlow documentation nothing worked for me.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
4 replies