Commit 5c30741
authored
Feature: Passwordless Login and Password Reset supports use of
## template-retail-react-app
- support setting passwordless login mode in config
- Set default passwordless mode to 'email' for apps created via pwa-kit-create-app
- Update password reset to use email mode by default. The mode can now be configured via default.js
- update passwordless login `extra-features` e2e tests
- update "Continue Securely" button to "Continue"
- display errors in EmailConfirmation page
- added new auth-utils.js that contains utility methods for mapping passwordless and reset password API error messages to user-friendly error messages
- added error message mappings for the following API error messages:
- "no callback_uri is registered for client" -> "This feature is not currently available"
- "Too many login requests were made. Please try again later." -> Too many requests. For your security, please wait 10 minutes before trying again.
- "Monthly quota for passwordless login mode email has been exceeded" -> "This feature is not currently available"
## commerce-sdk-react
- Update `getPasswordResetToken` and `authorizePasswordless` to default locale to the one in CommerceApiProvider and pass callback_uri and idp_name only when they are defined
- Update `getPasswordResetToken` to return a raw response and throw an error with the error message if the status code is not 200
## pwa-kit-create-app
- Update `default.js` and `/_app-config/index.jsx` template to use email mode by default for passwordless login and password reset.email mode (#3525)1 parent 3748b56 commit 5c30741
File tree
41 files changed
+1063
-274
lines changed- e2e
- tests
- desktop
- mobile
- packages
- commerce-sdk-react
- src/auth
- pwa-kit-create-app
- assets
- bootstrap/js
- config
- overrides/app/components/_app-config
- templates/@salesforce/retail-react-app
- app/components/_app-config
- config
- template-retail-react-app
- app
- components
- _app-config
- email-confirmation
- login
- passwordless-login
- hooks
- pages
- checkout/partials
- login
- reset-password
- static/translations/compiled
- utils
- config
- mocks
- translations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1063
-274
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | | - | |
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 96 | + | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
| |||
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
135 | | - | |
| 131 | + | |
136 | 132 | | |
137 | | - | |
138 | 133 | | |
139 | 134 | | |
140 | 135 | | |
141 | | - | |
| 136 | + | |
142 | 137 | | |
143 | 138 | | |
144 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
92 | 89 | | |
93 | 90 | | |
94 | 91 | | |
95 | | - | |
| 92 | + | |
96 | 93 | | |
97 | | - | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
101 | | - | |
| 97 | + | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
136 | 132 | | |
137 | 133 | | |
138 | 134 | | |
139 | | - | |
| 135 | + | |
140 | 136 | | |
141 | | - | |
142 | 137 | | |
143 | 138 | | |
144 | 139 | | |
145 | | - | |
| 140 | + | |
146 | 141 | | |
147 | 142 | | |
148 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments