File tree Expand file tree Collapse file tree
packages/ui/src/machines/authenticator Expand file tree Collapse file tree 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 @@ -509,7 +509,7 @@ export function signInActor({ services }: SignInMachineOptions) {
509509 options : { userAttributes } ,
510510 } ;
511511
512- return confirmSignIn ( input ) ;
512+ return ( services . handleForceChangePassword ?? confirmSignIn ) ( input ) ;
513513 } ,
514514 signInWithRedirect ( _ , { data } ) {
515515 return signInWithRedirect ( data ) ;
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ export const defaultServices = {
111111 handleForgotPasswordSubmit : confirmResetPassword ,
112112 handleForgotPassword : resetPassword ,
113113 handleResendSignUpCode : resendSignUpCode ,
114+ handleForceChangePassword : confirmSignIn ,
114115
115116 // Validation hooks for overriding
116117 async validateCustomSignUp (
You can’t perform that action at this time.
0 commit comments