Login Twitter by using Passport in Nuxt.js

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.

Download Details:

Author: ichiwa

Source Code: https://github.com/ichiwa/nuxt-twitter-auth

#vue #vuejs #nuxtjs #nuxt #javascript

Login Twitter by using Passport in Nuxt.js
10.25 GEEK