Twitter Passport Example
This app is a building block for using Twitter OAuth using passport-twitter. You will need to create a Twitter app to obtain the keys for the .env
variables.
View the Code
On the back-end,
- the app starts at
server.js
- frameworks and packages are in
package.json
- app secrets are safely stored in
.env
On the front-end,
- edit
client.js
,style.css
,index.html
andsuccess.html
- drag in
assets
, like images or music, to add them to your project
Screenshots
The index page at /
has a link to log in via Twitter
On successful authentication, a cookie is set and you're redirected to /success
When clicking the log off link, the cookie is deleted and you're redirected to back to the index page at /
Made by Fog Creek
\ ゜o゜)ノ