@ttoss/react-auth-cognito 2.7.7 → 2.8.1
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 +8 -1
- package/i18n/compiled/en.json +10 -0
- package/i18n/lang/en.json +5 -0
- package/package.json +21 -21
package/dist/esm/index.js
CHANGED
|
@@ -145,6 +145,12 @@ var Auth = /* @__PURE__ */__name(props => {
|
|
|
145
145
|
newPassword
|
|
146
146
|
}) => {
|
|
147
147
|
try {
|
|
148
|
+
if (!email) {
|
|
149
|
+
throw new Error("Email is required to reset password");
|
|
150
|
+
}
|
|
151
|
+
if (!code) {
|
|
152
|
+
throw new Error("Confirmation code is required to reset password");
|
|
153
|
+
}
|
|
148
154
|
await confirmResetPassword({
|
|
149
155
|
confirmationCode: code,
|
|
150
156
|
username: email,
|
|
@@ -171,7 +177,8 @@ var Auth = /* @__PURE__ */__name(props => {
|
|
|
171
177
|
onForgotPasswordResetPassword,
|
|
172
178
|
signUpTerms: props.signUpTerms,
|
|
173
179
|
logo: props.logo,
|
|
174
|
-
layout: props.layout
|
|
180
|
+
layout: props.layout,
|
|
181
|
+
maxForgotPasswordCodeLength: 6
|
|
175
182
|
});
|
|
176
183
|
}, "Auth");
|
|
177
184
|
|
package/i18n/compiled/en.json
CHANGED
package/i18n/lang/en.json
CHANGED
|
@@ -244,6 +244,11 @@
|
|
|
244
244
|
"defaultMessage": "Field is required",
|
|
245
245
|
"description": "Field is required"
|
|
246
246
|
},
|
|
247
|
+
"UibUNJ": {
|
|
248
|
+
"module": "@ttoss/forms",
|
|
249
|
+
"defaultMessage": "Invalid Value for Field of type {expected}",
|
|
250
|
+
"description": "Invalid Value"
|
|
251
|
+
},
|
|
247
252
|
"ZhaPt0": {
|
|
248
253
|
"module": "@ttoss/forms",
|
|
249
254
|
"defaultMessage": "Invalid Value for Field of type {type}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-auth-cognito",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "React authentication components using AWS Cognito",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -25,36 +25,36 @@
|
|
|
25
25
|
],
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"react-error-boundary": "^6.
|
|
29
|
-
"@ttoss/react-auth-core": "^0.
|
|
28
|
+
"react-error-boundary": "^6.1.0",
|
|
29
|
+
"@ttoss/react-auth-core": "^0.4.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"aws-amplify": "^6.0.0",
|
|
33
33
|
"react": ">=16.8.0",
|
|
34
|
-
"@ttoss/
|
|
35
|
-
"@ttoss/
|
|
36
|
-
"@ttoss/
|
|
37
|
-
"@ttoss/
|
|
38
|
-
"@ttoss/
|
|
39
|
-
"@ttoss/
|
|
34
|
+
"@ttoss/forms": "^0.41.0",
|
|
35
|
+
"@ttoss/react-i18n": "^2.1.0",
|
|
36
|
+
"@ttoss/react-notifications": "^2.6.0",
|
|
37
|
+
"@ttoss/logger": "^0.7.4",
|
|
38
|
+
"@ttoss/ui": "^6.6.0",
|
|
39
|
+
"@ttoss/components": "^2.13.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@jest/globals": "^29.7.0",
|
|
43
|
-
"@types/react": "^19.2.
|
|
43
|
+
"@types/react": "^19.2.14",
|
|
44
44
|
"aws-amplify": "^6.11.0",
|
|
45
45
|
"jest": "^30.2.0",
|
|
46
|
-
"react": "^19.2.
|
|
46
|
+
"react": "^19.2.4",
|
|
47
47
|
"tsup": "^8.5.1",
|
|
48
|
-
"@ttoss/
|
|
49
|
-
"@ttoss/
|
|
50
|
-
"@ttoss/
|
|
51
|
-
"@ttoss/
|
|
52
|
-
"@ttoss/i18n-cli": "^0.7.
|
|
53
|
-
"@ttoss/logger": "^0.7.
|
|
54
|
-
"@ttoss/react-i18n": "^2.0
|
|
55
|
-
"@ttoss/react-notifications": "^2.
|
|
56
|
-
"@ttoss/test-utils": "^4.0
|
|
57
|
-
"@ttoss/ui": "^6.
|
|
48
|
+
"@ttoss/config": "^1.36.0",
|
|
49
|
+
"@ttoss/cloud-auth": "^0.13.13",
|
|
50
|
+
"@ttoss/forms": "^0.41.0",
|
|
51
|
+
"@ttoss/components": "^2.13.0",
|
|
52
|
+
"@ttoss/i18n-cli": "^0.7.39",
|
|
53
|
+
"@ttoss/logger": "^0.7.4",
|
|
54
|
+
"@ttoss/react-i18n": "^2.1.0",
|
|
55
|
+
"@ttoss/react-notifications": "^2.6.0",
|
|
56
|
+
"@ttoss/test-utils": "^4.1.0",
|
|
57
|
+
"@ttoss/ui": "^6.6.0"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"React",
|