@ttoss/react-auth-cognito 2.8.0 → 2.8.2
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/package.json +13 -13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-auth-cognito",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "React authentication components using AWS Cognito",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"react-error-boundary": "^6.1.0",
|
|
29
|
-
"@ttoss/react-auth-core": "^0.4.
|
|
29
|
+
"@ttoss/react-auth-core": "^0.4.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"aws-amplify": "^6.0.0",
|
|
33
33
|
"react": ">=16.8.0",
|
|
34
|
-
"@ttoss/components": "^2.13.
|
|
35
|
-
"@ttoss/logger": "^0.7.4",
|
|
36
|
-
"@ttoss/forms": "^0.41.0",
|
|
34
|
+
"@ttoss/components": "^2.13.1",
|
|
37
35
|
"@ttoss/react-i18n": "^2.1.0",
|
|
38
|
-
"@ttoss/
|
|
39
|
-
"@ttoss/ui": "^6.
|
|
36
|
+
"@ttoss/forms": "^0.41.1",
|
|
37
|
+
"@ttoss/ui": "^6.7.0",
|
|
38
|
+
"@ttoss/react-notifications": "^2.6.1",
|
|
39
|
+
"@ttoss/logger": "^0.7.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@jest/globals": "^29.7.0",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"react": "^19.2.4",
|
|
47
47
|
"tsup": "^8.5.1",
|
|
48
48
|
"@ttoss/cloud-auth": "^0.13.13",
|
|
49
|
-
"@ttoss/components": "^2.13.
|
|
50
|
-
"@ttoss/
|
|
51
|
-
"@ttoss/
|
|
49
|
+
"@ttoss/components": "^2.13.1",
|
|
50
|
+
"@ttoss/forms": "^0.41.1",
|
|
51
|
+
"@ttoss/logger": "^0.7.4",
|
|
52
52
|
"@ttoss/react-i18n": "^2.1.0",
|
|
53
53
|
"@ttoss/i18n-cli": "^0.7.39",
|
|
54
|
-
"@ttoss/
|
|
55
|
-
"@ttoss/react-notifications": "^2.6.0",
|
|
54
|
+
"@ttoss/config": "^1.36.0",
|
|
56
55
|
"@ttoss/test-utils": "^4.1.0",
|
|
57
|
-
"@ttoss/
|
|
56
|
+
"@ttoss/react-notifications": "^2.6.1",
|
|
57
|
+
"@ttoss/ui": "^6.7.0"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"React",
|