tessalt/books

★ 1Forks 0JavaScriptGitHub ↗Compare

README

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.

Screenshots

The index page at / has a link to log in via Twitter

log in page

On successful authentication, a cookie is set and you're redirected to /success successful authentication

When clicking the log off link, the cookie is deleted and you're redirected to back to the index page at /

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 index.html and success.html
  • drag in assets, like images or music, to add them to your project

Made by Glitch

\ ゜o゜)ノ

Contributors

tessalt

Issues