Twitter API for login is not working in react-js application ( using react-twitter-login )

846 Views Asked by At

Always getting this error when I click on login button of twitter, also i added this call back URL in my developer-twitter account's project ( with localhost and local IP both ) , on click of twitter button box is opening but it show's blank screen inside, I am sharing my code block as well

here is my twitter configuration

import TwitterLogin from "react-twitter-login";

export default (props) => {
  const authHandler = (err, data) => {
    console.log(err, data);
  };

  return (
    <TwitterLogin
      authCallback={authHandler}
      consumerKey={CONSUMER_KEY}
      consumerSecret={CONSUMER_SECRET}
    />
  );
}; 
0

There are 0 best solutions below