This repo is for the creator of react-twitter-auth to reproduce an issue I'm having.
The original example repo is here
To reproduce the error:
- clone repo, build and run as per original instructions (below).
- Click twitter auth button and twitter auth appears in popup window.
- Press ctrl-shift-i to bring up dev tools console and you will see the warning about semi-colon ';' is invalid separator.
- Click authorise button.
- Popup window stays open and displays app - whereas it should really hide itself I think.
- Note the
console.log( "@twitter response on success");
in client app.js onSuccess function doesn't appear in (either) console.
Demo application that shows how implement Twitter login with React on frontend and Node.js/Express on backend that is implementing REST API.
This application was created as material that is described in the blog post. For creating React app we have used crate-react-app.
- Start MongoDB - our application expects that there is
twitter-demo
database in MongoDB - Put Twitter secret and key in passport.js and server.js files
- Go to frontend folder
npm install
npm start
- Go to backend folder
npm install
gulp develop
react-node-twitter-login is released under MIT License.