@W-20342599 Password Reset uses email mode#3547
Merged
hajinsuha1 merged 14 commits intofeature/email-otpfrom Jan 2, 2026
Merged
@W-20342599 Password Reset uses email mode#3547hajinsuha1 merged 14 commits intofeature/email-otpfrom
email mode#3547hajinsuha1 merged 14 commits intofeature/email-otpfrom
Conversation
…improve documentation
…, update Commerce API parameters to test with staging-001" This reverts commit 66bcafa.
- Updated callback_uri and idp_name to be included only if provided. - Set default value for locale to use the one in the CommerceAPIProvider similar to passwordless login - Set default value for hint to `cross_device` to improve request handling.
…e mode parameter - Refactored usePasswordReset hook to utilize buildAbsoluteUrl for constructing callbackURI. - Updated configuration to set default mode for password reset to 'email'. - Enhanced getPasswordResetToken function to include mode in the mutation request.
…s' into W-20342599-password-reset-uses-slas-email-mode
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Base automatically changed from
W-20443849-set-default-passwordless-mode-to-email-in-hbs
to
feature/email-otp
December 22, 2025 19:26
…slas-email-mode Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
…s://github.com/SalesforceCommerceCloud/pwa-kit into W-20342599-password-reset-uses-slas-email-mode
…ail mode, update Commerce API parameters to test with staging-001"" This reverts commit 6d6b90f.
…tion - Modified the usePasswordReset hook to safely access the callbackURI property using optional chaining. - This change ensures that the application does not break if the callbackURI is not defined in the configuration.
…slas-email-mode Signed-off-by: Jinsu Ha <91205717+hajinsuha1@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a new
modeto the password reset configuration that allows merchants to configure the mode they want to use for alloauth/password/resetcalls:Now it will set the password reset mode to the following
Types of Changes
Changes
commerce-sdk-react
getPasswordResetTokento default locale to the one in CommerceApiProvider and pass callback_uri and idp_name only when they are definedresetPasswordto default hint tocross_deviceand pass code_verifier only when it is definedpwa-kit-create-app
default.jsand/_app-config/index.jsxtemplate to use email mode by default for passwordless login and password reset.template-retail-react-app
How to Test-Drive This PR
Email mode
This tests when default.js is configured to the following:
template-retail-react-appPasswordbutton, clickingForgot Password, then clicking theReset Passwordbuttonen-USinstead ofen-GBin the/password/resetrequest)Callback mode
default.jstoPasswordbutton, clickingForgot Password, then clicking theReset PasswordbuttonBackwards Compatibilty with
template-retail-react-appThe current
template-retail-react-appdoes not specify amodeand only specifies acallbackURI. Let's make sure our changes incommerce-sdk-reactare backwards compatible!This ensures when mode is missing but callbackURI is set in default.js, callback mode is used
default.jstoPasswordbutton, clickingForgot Password, then clicking theReset Passwordbuttonpwa-kit-create-app
pwa-kit-create-apphave default mode set toemailforresetPasswordChecklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization