passport-kakao-token

0.1.5 • Public • Published

passport-kakao-token

This module provides to authenticate with an access token on connect middleware including express.js. It will be necessary to login on the Device.

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

How to Use

You can authenticate with calling REST API like below.

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

And you should define a routing on your connect-style codes.

app.get('/auth/kakao/token', passport.authenticate('kakao-token'), function (req, res) {
    if (req.user) {
        // success
    } else {
        // fail
    }
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i passport-kakao-token

    Weekly Downloads

    77

    Version

    0.1.5

    License

    MIT

    Unpacked Size

    7.77 kB

    Total Files

    8

    Last publish

    Collaborators

    • hogangnono