lightapp-platform-common
Advanced tools
Comparing version 1.0.345 to 1.0.444
{ | ||
"name": "lightapp-platform-common", | ||
"version": "1.0.345", | ||
"version": "1.0.444", | ||
"description": "common utilities for lightapp platform", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,3 @@ "use strict"; | ||
Name: 'email', | ||
Value: userInfo.eMail | ||
Value: userInfo.email | ||
}; | ||
@@ -48,4 +48,4 @@ console.log(`start Cognito signUp with userInfo: ${JSON.stringify(userInfo)}`); | ||
if (cognitoUserPool) { | ||
const { userName, password } = userInfo; | ||
cognitoUserPool.signUp(userName, password, validationData, userAttributes, (err, res) => { | ||
const { username, password } = userInfo; | ||
cognitoUserPool.signUp(username, password, validationData, userAttributes, (err, res) => { | ||
if (err) { | ||
@@ -52,0 +52,0 @@ _error = Response_1.error(err, `fail in cognitoUserPool.signUp with userInfo: ${JSON.stringify(userInfo)}`); |