Skip to content

Commit 80e19f2

Browse files
fix(ui): Await the navigation on password submit (#7443)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 0d06078 commit 80e19f2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/wise-ghosts-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Fix: await navigation after password sign-in completes to ensure redirects finish before continuing.

packages/ui/src/components/SignIn/SignInFactorOnePasswordCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const SignInFactorOnePasswordCard = (props: SignInFactorOnePasswordProps)
7979
return setActive({
8080
session: res.createdSessionId,
8181
navigate: ({ session }) => {
82-
void navigateOnSetActive({ session, redirectUrl: afterSignInUrl });
82+
return navigateOnSetActive({ session, redirectUrl: afterSignInUrl });
8383
},
8484
});
8585
case 'needs_second_factor':

0 commit comments

Comments
 (0)