Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

355
Views
I Want To Check If User Exist Before Login If Not They Must Sign Up, In Firebase Google Auth

I have Login and Sign Up functionality using Firebase Google Auth and It works Fine but I want to Check If the user already Signed Up, They can't sign Up 2 times they'll have to Login. is there a Code Like:

if(user.exist){
  alert("Account Already exists please Login")
}else{
  auth.signInWithPopup(provider)
}

And vice versa if they do not exist they'll have to Sign Up:

Is This possible with google auth?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You'll need to know at least part of the user's credentials to check if they already exist in Firebase Authentication.

For example, if the user signed in with a provider that requires their email before, you'll should ask them for their email address next time and then call fetchSignInMethodsForEmail to determine if Firebase already has a user for that email address.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!