passport-cognito
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -182,3 +182,9 @@ // Load modules. | ||
var obj = attr.getName(); | ||
user[obj.Name] = obj.Value; | ||
if(typeof(obj.Name) == "string"){ | ||
user[obj.Name] = obj.Value; | ||
} else { | ||
// when using passport-cognito with 'amazon-cognito-identity-js' | ||
// an error occurs, this is a quick fix for this | ||
user[attr.getName()] = attr.getValue(); | ||
} | ||
}) | ||
@@ -185,0 +191,0 @@ callback(user); |
{ | ||
"name": "passport-cognito", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Express passport module for Cognito User Pools", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
14180
266