@ttoss/react-auth 1.2.7 → 1.2.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/esm/index.js +4 -3
- package/dist/index.js +4 -3
- package/package.json +10 -10
package/dist/esm/index.js
CHANGED
|
@@ -216,9 +216,10 @@ var createAuthTemplate = ({
|
|
|
216
216
|
autoVerifiedAttributes = ["email"],
|
|
217
217
|
identityPool = true,
|
|
218
218
|
roles,
|
|
219
|
-
schema
|
|
219
|
+
schema,
|
|
220
|
+
usernameAttributes = ["email"]
|
|
220
221
|
} = {}) => {
|
|
221
|
-
const AutoVerifiedAttributes = Array.isArray(autoVerifiedAttributes) && autoVerifiedAttributes.length > 0 ? autoVerifiedAttributes :
|
|
222
|
+
const AutoVerifiedAttributes = Array.isArray(autoVerifiedAttributes) && autoVerifiedAttributes.length > 0 ? autoVerifiedAttributes : [];
|
|
222
223
|
const template = {
|
|
223
224
|
AWSTemplateFormatVersion: "2010-09-09",
|
|
224
225
|
Resources: {
|
|
@@ -237,7 +238,7 @@ var createAuthTemplate = ({
|
|
|
237
238
|
}
|
|
238
239
|
},
|
|
239
240
|
Schema: schema,
|
|
240
|
-
UsernameAttributes:
|
|
241
|
+
UsernameAttributes: usernameAttributes,
|
|
241
242
|
UsernameConfiguration: {
|
|
242
243
|
CaseSensitive: false
|
|
243
244
|
},
|
package/dist/index.js
CHANGED
|
@@ -249,9 +249,10 @@ var createAuthTemplate = ({
|
|
|
249
249
|
autoVerifiedAttributes = ["email"],
|
|
250
250
|
identityPool = true,
|
|
251
251
|
roles,
|
|
252
|
-
schema
|
|
252
|
+
schema,
|
|
253
|
+
usernameAttributes = ["email"]
|
|
253
254
|
} = {}) => {
|
|
254
|
-
const AutoVerifiedAttributes = Array.isArray(autoVerifiedAttributes) && autoVerifiedAttributes.length > 0 ? autoVerifiedAttributes :
|
|
255
|
+
const AutoVerifiedAttributes = Array.isArray(autoVerifiedAttributes) && autoVerifiedAttributes.length > 0 ? autoVerifiedAttributes : [];
|
|
255
256
|
const template = {
|
|
256
257
|
AWSTemplateFormatVersion: "2010-09-09",
|
|
257
258
|
Resources: {
|
|
@@ -270,7 +271,7 @@ var createAuthTemplate = ({
|
|
|
270
271
|
}
|
|
271
272
|
},
|
|
272
273
|
Schema: schema,
|
|
273
|
-
UsernameAttributes:
|
|
274
|
+
UsernameAttributes: usernameAttributes,
|
|
274
275
|
UsernameConfiguration: {
|
|
275
276
|
CaseSensitive: false
|
|
276
277
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-auth",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "ttoss authentication module for React apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"typings": "./dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ttoss/forms": "^0.
|
|
25
|
+
"@ttoss/forms": "^0.14.0",
|
|
26
26
|
"@xstate/react": "^3.0.1",
|
|
27
27
|
"xstate": "^4.35.0"
|
|
28
28
|
},
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"react": ">=16.8.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ttoss/cloud-auth": "^0.
|
|
38
|
-
"@ttoss/config": "^1.
|
|
39
|
-
"@ttoss/i18n-cli": "^0.3.
|
|
40
|
-
"@ttoss/react-i18n": "^1.18.
|
|
41
|
-
"@ttoss/react-notifications": "^1.
|
|
42
|
-
"@ttoss/test-utils": "^1.20.
|
|
43
|
-
"@ttoss/ui": "^1.
|
|
37
|
+
"@ttoss/cloud-auth": "^0.6.0",
|
|
38
|
+
"@ttoss/config": "^1.28.0",
|
|
39
|
+
"@ttoss/i18n-cli": "^0.3.2",
|
|
40
|
+
"@ttoss/react-i18n": "^1.18.5",
|
|
41
|
+
"@ttoss/react-notifications": "^1.20.0",
|
|
42
|
+
"@ttoss/test-utils": "^1.20.2",
|
|
43
|
+
"@ttoss/ui": "^1.30.0",
|
|
44
44
|
"aws-amplify": "^5.0.7"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7852c1c6c570e30cd03a603902f45fb4849c7701"
|
|
54
54
|
}
|