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 1
1
import { createMachine , sendUpdate } from 'xstate' ;
2
2
import type { ConfirmSignInInput } from 'aws-amplify/auth' ;
3
3
import {
4
- confirmSignIn ,
5
4
fetchUserAttributes ,
6
5
resetPassword ,
7
6
signInWithRedirect ,
@@ -345,7 +344,7 @@ export function signInActor({ services }: SignInMachineOptions) {
345
344
options : { userAttributes } ,
346
345
} ;
347
346
348
- return confirmSignIn ( input ) ;
347
+ return services . handleForceChangePassword ( input ) ;
349
348
} ,
350
349
signInWithRedirect ( _ , { data } ) {
351
350
return signInWithRedirect ( data ) ;
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export const defaultServices = {
92
92
handleForgotPasswordSubmit : confirmResetPassword ,
93
93
handleForgotPassword : resetPassword ,
94
94
handleResendSignUpCode : resendSignUpCode ,
95
+ handleForceChangePassword : confirmSignIn ,
95
96
96
97
// Validation hooks for overriding
97
98
async validateCustomSignUp (
You can’t perform that action at this time.
0 commit comments