/nuxt-twitter-auth

Login twitter by using passport in nuxt.js

Primary LanguageVue

nuxt-twitter-auth

Nuxt.js project

Build Setup

# install dependencies
$ yarn install

In Twitter

Create Twitter app and set callback url = http://127.0.0.1:3000/callback img

Update your CONSUMER_KEY and CONSUMER_SECRET

server/index.js

- consumerKey: CONSUMER_KEY,
- consumerSecret: CONSUMER_SECRET,

serve with hot reload at localhost:3000

$ yarn dev

DEMO

demo

For detailed explanation on how things work, checkout the Nuxt.js docs.