From 19ea84e99d19705a80df7d7598b66a577ab4e688 Mon Sep 17 00:00:00 2001 From: Matias Perez <43894343+matiasperz@users.noreply.github.com> Date: Wed, 5 Mar 2025 22:10:04 -0300 Subject: [PATCH 1/2] Update oauth-connections.mdx For nextjs app router, the page filename should be page.tsx --- docs/custom-flows/oauth-connections.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/custom-flows/oauth-connections.mdx b/docs/custom-flows/oauth-connections.mdx index 0376cb81c3..217f1af787 100644 --- a/docs/custom-flows/oauth-connections.mdx +++ b/docs/custom-flows/oauth-connections.mdx @@ -56,7 +56,7 @@ You must configure your application instance through the Clerk Dashboard for the } ``` - ```tsx {{ filename: 'app/sign-up/sso-callback.tsx' }} + ```tsx {{ filename: 'app/sign-up/sso-callback/page.tsx' }} import { AuthenticateWithRedirectCallback } from '@clerk/nextjs' export default function SSOCallback() { From cd7d094c2136445aa2b78aacd80263e9e1474a2b Mon Sep 17 00:00:00 2001 From: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> Date: Thu, 6 Mar 2025 14:36:35 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/custom-flows/oauth-connections.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/custom-flows/oauth-connections.mdx b/docs/custom-flows/oauth-connections.mdx index 217f1af787..a3f0bc80cb 100644 --- a/docs/custom-flows/oauth-connections.mdx +++ b/docs/custom-flows/oauth-connections.mdx @@ -56,10 +56,10 @@ You must configure your application instance through the Clerk Dashboard for the } ``` - ```tsx {{ filename: 'app/sign-up/sso-callback/page.tsx' }} + ```tsx {{ filename: 'app/sign-in/sso-callback/page.tsx' }} import { AuthenticateWithRedirectCallback } from '@clerk/nextjs' - export default function SSOCallback() { + export default function Page() { // Handle the redirect flow by calling the Clerk.handleRedirectCallback() method // or rendering the prebuilt component. // This is the final step in the custom OAuth flow.