We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 103b83d + ee7d5f0 commit 904207bCopy full SHA for 904207b
2 files changed
.changeset/public-suns-tickle.md
@@ -0,0 +1,5 @@
1
+---
2
+'@asgardeo/react': patch
3
4
+
5
+Handle failure reason from flow execution response
packages/react/src/components/presentation/auth/SignIn/v2/SignIn.tsx
@@ -546,6 +546,11 @@ const SignIn: FC<SignInProps> = ({
546
setIsFlowInitialized(true);
547
// Clean up flowId from URL after setting it in state
548
cleanupFlowUrlParams();
549
550
+ // Display failure reason from INCOMPLETE response
551
+ if ((response as any)?.failureReason) {
552
+ setFlowError(new Error((response as any).failureReason));
553
+ }
554
}
555
} catch (error) {
556
const err: any = error as any;
0 commit comments