Skip to content

Commit c36cae4

Browse files
handle failure reason
1 parent 103b83d commit c36cae4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/react/src/components/presentation/auth/SignIn/v2

packages/react/src/components/presentation/auth/SignIn/v2/SignIn.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ const SignIn: FC<SignInProps> = ({
546546
setIsFlowInitialized(true);
547547
// Clean up flowId from URL after setting it in state
548548
cleanupFlowUrlParams();
549+
550+
// Display failure reason from INCOMPLETE response
551+
if ((response as any)?.failureReason) {
552+
setFlowError(new Error((response as any).failureReason));
553+
}
549554
}
550555
} catch (error) {
551556
const err: any = error as any;

0 commit comments

Comments
 (0)