passport-oneauth
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "passport-oneauth", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Passport strategy for oneauth server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ /** | ||
exports.parse = function(json) { | ||
if ('string' == typeof json) { | ||
if ('string' === typeof json) { | ||
json = JSON.parse(json); | ||
@@ -17,2 +17,3 @@ } | ||
profile.photo = json.photo; | ||
profile.verifiedemail = json.verifiedemail; | ||
if(json.userfacebook) profile.facebook = json.userfacebook; | ||
@@ -19,0 +20,0 @@ if(json.usergithub) profile.github = json.usergithub; |
@@ -48,2 +48,3 @@ import {Strategy as OAuth2Strategy} from 'passport-oauth2' | ||
photo: string, | ||
verifiedemail?: string, | ||
facebook?: {}, | ||
@@ -50,0 +51,0 @@ github?: {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19246
189
6