Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

402
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda