Give a user permission to use app

Hello.

How can I figure this out?

Users are able to login to my app, However I want to give them permission before they can login to the app…

How can I go about it?

Hello,

You want to give them permission to do what exactly?

Mark

Let me be specific :
Inside of the users table I have a boolean column named “valid”, by default its value is set to false, I want to only allow user access to the app if the boolean state is on true, so before a user logs in, I want to make a call to the users table, get the state of that object, then grant user permission to use app, only if the state is true.

Is it a bit clearer?

If a user is not logged in, how do you know for which user object to check that column?

Thank you for the quick reply.

Short answer:
I do not/cannot know.

Thanks, I will try a different way to work the app