passport-naver-token

Naver token authentication strategy for Passport

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
passport-naver-token
1.0.27 years ago7 years agoMinified + gzip package size for passport-naver-token in KB

Readme

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

```sh $ npm install passport-naver-token ```

How to Use

Sending accesstoken as a Query parameter

``` GET /auth/naver/token?accesstoken=ACCESSTOKEN ```

Authenticate Requests

```js 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);
}); ```