passport-weixin-app
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,5 +7,4 @@ exports.parse = function(json) { | ||
var profile = {}; | ||
profile.provider = 'weixin'; | ||
profile.id = String(json.unionid || json.openid); | ||
return profile; | ||
}; |
@@ -61,2 +61,3 @@ var OAuth2Strategy = require('passport-oauth2') | ||
var profile = Profile.parse(res.body); | ||
profile.provider = 'weixin-app'; | ||
profile._json = res.body; | ||
@@ -63,0 +64,0 @@ |
{ | ||
"name": "passport-weixin-app", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Weixin app authentication strategy for Passport.", | ||
@@ -15,4 +15,3 @@ "main": "./lib", | ||
}, | ||
"devDependencies": { | ||
} | ||
"devDependencies": {} | ||
} |
3864