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

345
Vistas
firebase twitter login error : auth/invalid-credential

I'm going to put a firebase-based Twitter login on a web page. As shown in Docs, we created an app on the Twitter developer portal, put the app key and app secret in the firebase column, respectively, and added the firebase's callback URL to the Twitter app.

When you try to run by pressing the login button, a rare appears with the following error code. auth/invalid-credential The supplied auth credential is malformed or has expired.

Do you happen to know what I did wrong? Can I also know the solution? JavaScript was used, and under the same conditions, Facebook and Google can log in well and retrieve user information.

Someone help me why Twitter is the only thing like this... I am desperate! Below, I put my Twitter login code and other screenshots together in case I need it.

$(document).on('click', '#twiter', function () {
var provider = new firebase.auth.TwitterAuthProvider();
firebase.auth().useDeviceLanguage();
firebase
    .auth()
    .signInWithPopup(provider)
    .then((res) => {
        /** @type {firebase.auth.OAuthCredential} */
        var token = result.credential.accessToken;
        var user = result.user;

        console.log(token)
        console.log(user)
        // ...
    }).catch((error) => {
        console.log(error)
        console.log(error.code)
        console.log(error.message)
    });

});

enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
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