Login twitter by using passport in nuxt.js
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets First commit Aug 22, 2018
components First commit Aug 22, 2018
layouts First commit Aug 22, 2018
middleware First commit Aug 22, 2018
pages First commit Aug 22, 2018
plugins First commit Aug 22, 2018
server First commit Aug 22, 2018
static First commit Aug 22, 2018
store First commit Aug 22, 2018
.editorconfig First commit Aug 22, 2018
.eslintrc.js First commit Aug 22, 2018
.gitignore First commit Aug 22, 2018
README.md Update README.md Aug 29, 2018
nuxt.config.js First commit Aug 22, 2018
package-lock.json First commit Aug 22, 2018
package.json First commit Aug 22, 2018

README.md

nuxt-twitter-auth

Nuxt.js project

Build Setup

# install dependencies
$ npm install # Or 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

$ npm run dev

DEMO

demo

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