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

346
Views
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
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!