oldwil19 / twitter-passport-example

an example app implementing twitter oauth with passport

Home Page:https://twitter-passport-example.glitch.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 and success.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

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 /

Made by Fog Creek

\ ゜o゜)ノ

About

an example app implementing twitter oauth with passport

https://twitter-passport-example.glitch.me/


Languages

Language:Shell 41.3%Language:HTML 31.3%Language:JavaScript 25.6%Language:CSS 1.8%