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.
@@ -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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "3.10.8",
3
+ "version": "3.10.9",
4
4
  "description": "AWS wrappers to use in IDEA's back-ends",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",