File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/ui/src/machines/authenticator Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @aws-amplify/ui ' : minor
3+ ---
4+
5+ Added services.handleForceChangePassword hook
Original file line number Diff line number Diff line change 11import { createMachine , sendUpdate } from 'xstate' ;
22import type { ConfirmSignInInput } from 'aws-amplify/auth' ;
33import {
4- confirmSignIn ,
54 fetchUserAttributes ,
65 resetPassword ,
76 signInWithRedirect ,
@@ -345,7 +344,7 @@ export function signInActor({ services }: SignInMachineOptions) {
345344 options : { userAttributes } ,
346345 } ;
347346
348- return confirmSignIn ( input ) ;
347+ return services . handleForceChangePassword ( input ) ;
349348 } ,
350349 signInWithRedirect ( _ , { data } ) {
351350 return signInWithRedirect ( data ) ;
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export const defaultServices = {
9292 handleForgotPasswordSubmit : confirmResetPassword ,
9393 handleForgotPassword : resetPassword ,
9494 handleResendSignUpCode : resendSignUpCode ,
95+ handleForceChangePassword : confirmSignIn ,
9596
9697 // Validation hooks for overriding
9798 async validateCustomSignUp (
You can’t perform that action at this time.
0 commit comments