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

399
Views
How to link Email/Password sign-in method using Firebase admin SDK?

I'm trying to use firebase admin SDK in order to link the Email/Password sign-in method.

Based on firebase documentation we can links user to a specific provider https://firebase.google.com/docs/reference/admin/node/firebase-admin.auth.updaterequest.md#updaterequestprovidertolink


based on that I'm using :

await admin
           .auth()
           .updateUser(user.uid, {
                providerToLink: {
                    uid: user.email,
                    email: user.email,
                    displayName: user.displayName,
                    providerId: 'password',
                },
            })
            .catch((error: any) => {
                console.error(`${error}`);
            });

It should link the Email/Password sign-in method to a specific user, but instead of that it's returning error with

  • code = auth/invalid-provider-id
  • message = The providerId must be a valid supported provider identifier string.

It's working as expected when the providerId equal to facebook.com or google.com

Question

Is there is another providerId I should use in order to link the Email/Password sign-in method ?

Is there another approach I should use in order to link the Email/Password sign-in method ?


Node version : 12

firebase-admin : 9.12.0

over 4 years ago · Santiago Trujillo
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!