idea-aws 3.10.8 → 3.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cognito.js +2 -2
- package/package.json +1 -1
package/dist/src/cognito.js
CHANGED
|
@@ -99,7 +99,7 @@ class Cognito {
|
|
|
99
99
|
if (typeof cognitoUserOrEmail === 'object') {
|
|
100
100
|
const user = cognitoUserOrEmail;
|
|
101
101
|
UserAttributes.push({ Name: 'name', Value: user.name });
|
|
102
|
-
UserAttributes.push({ Name: 'picture', Value: user.picture });
|
|
102
|
+
UserAttributes.push({ Name: 'picture', Value: user.picture || '' });
|
|
103
103
|
Object.keys(user.attributes).forEach(a => UserAttributes.push({ Name: 'custom:'.concat(a), Value: String(user.attributes[a]) }));
|
|
104
104
|
}
|
|
105
105
|
const params = {
|
|
@@ -215,7 +215,7 @@ class Cognito {
|
|
|
215
215
|
async updateUser(user, cognitoUserPoolId) {
|
|
216
216
|
const UserAttributes = [
|
|
217
217
|
{ Name: 'name', Value: user.name },
|
|
218
|
-
{ Name: 'picture', Value: user.picture }
|
|
218
|
+
{ Name: 'picture', Value: user.picture || '' }
|
|
219
219
|
];
|
|
220
220
|
Object.keys(user.attributes).forEach(customAttribute => UserAttributes.push({
|
|
221
221
|
Name: 'custom:'.concat(customAttribute),
|