Skip to content

Commit aea626c

Browse files
committed
fix(web): fix sign up clerk flow sign up flow
1 parent 14b8703 commit aea626c

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

apps/web/src/app/sign-in/components/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function LoginForm({
2424
try {
2525
await signIn.authenticateWithRedirect({
2626
strategy: "oauth_google",
27+
redirectUrl: "/sign-in/sso-callback",
2728
redirectUrlComplete: "/dashboard",
28-
redirectUrl: "/dashboard",
2929
});
3030
} catch (error) {
3131
console.error("Sign in failed:", error);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { AuthenticateWithRedirectCallback } from "@clerk/nextjs";
2+
3+
export default function Page() {
4+
// Handle the redirect flow by calling the Clerk.handleRedirectCallback() method
5+
// or rendering the prebuilt <AuthenticateWithRedirectCallback/> component.
6+
return (
7+
<>
8+
<AuthenticateWithRedirectCallback />
9+
10+
{/* Required for sign-up flows
11+
Clerk's bot sign-up protection is enabled by default */}
12+
{/** biome-ignore lint/correctness/useUniqueElementIds: handled by clerk */}
13+
<div id="clerk-captcha" />
14+
</>
15+
);
16+
}

0 commit comments

Comments
 (0)