i built custom authentication system using firebaseauthentication tokens.
my signup / login flow should work this:
- user presses login button
- my server generates authentication token , sends client
- check if user exists (in 'auth' table or in database?)
- if
true
: sign in usingfirauth.auth()?.signin(withcustomtoken:...
- if
false
: show form to enter custom information (name, etc..)- sign using
firauth.auth()?.signin(withcustomtoken:...
- save custom information database
- sign using
- if
my question is: how can find out if user has signed up? publicly accessible database uid's
way go?
this opinion based, yes, use standalone db stores each user's username has signed up. required quick web request through php file querying rows returned username.
Comments
Post a Comment