Skip to content

Commit

Permalink
force staying on same page after login
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Jul 25, 2024
1 parent f44c054 commit 85a944e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/timer/timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const onSignInClick = async (clerk: LoadedClerk) => {
if (clerk.session?.status == "active") {
await clerk.session?.end();
}
clerk.openSignIn();
clerk.openSignIn({ forceRedirectUrl: window.location.href });
};

export const Timer: React.FC = () => {
Expand Down

0 comments on commit 85a944e

Please sign in to comment.