-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@W-15953350 Reset Password #2132
base: W-17093012-passwordless-poc-mc
Are you sure you want to change the base?
@W-15953350 Reset Password #2132
Conversation
…assword-poc-mc Signed-off-by: Yuna Kim <[email protected]>
…rceCommerceCloud/pwa-kit into W-15953350-reset-password-poc-mc
`${slasClient.clientConfig.parameters.clientId}:${this.clientSecret}` | ||
)}` | ||
} | ||
// TODO: no code verifier needed with the fix blair has made, delete this when the fix has been merged to production |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stale comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, this is to delete the @ts-ignore comment, as right now we get an error because we are not passing in code_verifier
const getPasswordResetToken = async (email) => { | ||
await getPasswordResetTokenMutation.mutateAsync({ | ||
user_id: email, | ||
callback_uri: absoluteUrl('/reset-password-callback') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: If customers wanted to customize the callback URI they would have to come into this hook and change this line... Or should we have this configurable in the config file ?🤔
Description
Revamps the Reset Password flow in the PWA Kit to leverage the SLAS password reset process and Marketing Cloud integration to send the reset password magic link to the shopper.
Types of Changes
Changes
usePasswordReset()
hook to the template app[email protected]
How to Test-Drive This PR
[email protected]
with a magic link, redirecting to the reset password formTo run tests:
template-retail-react-app
: runnpm run test app/hooks/use-password-reset.test.js
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization