1.0.2 • Published 8 years ago

passport-naver-token v1.0.2

Weekly downloads
332
License
MIT
Repository
github
Last release
8 years ago

passport-naver-token

Passport strategy for authenticating with Naver access tokens using the OAuth 2.0 API.

This module lets you authenticate using Naver in your Node.js applications. By plugging into Passport, Naver authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.

It forked from passport-naver and refered from passport-facebook-token.

##Install

 $ npm install passport-naver-token

How to Use

Sending access_token as a Query parameter

GET /auth/naver/token?access_token=[ACCESS_TOKEN]

####Authenticate Requests

app.get("/auth/naver/token", passport.authenticate('naver-token', null),
function(req, res, next){
	// do something with req.user 
    res.send(req.user ? 200 : 401);
});