File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments