passport-weixin2
v0.0.2
Published
passport oauth2 strategy for weixin
Downloads
4
Maintainers
Readme
passport-weixin
passport oauth2 strategy for weixin
Install
npm install passport-weixin
Usage
var passport = require('passport')
, WeixinStrategy = require('passport-weixin')
;
passport.use(new WeixinStrategy({
clientID: 'CLIENTID'
, clientSecret: 'CLIENT SECRET'
, callbackURL: 'CALLBACK URL'
, requireState: false
, scope: 'snsapi_login'
}, function(accessToken, refreshToken, profile, done){
done(null, profile);
}));
License
MIT