Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

[DOCS] OAuth PKCE Flow - fix incorrect relative path for redirectTo (#22694)

Jan Szymański261501b07428
diff --git a/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx b/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx
index 1b8ca766dfc..40af43d1fde 100644
--- a/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx
+++ b/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx
@@ -237,7 +237,7 @@ In the server, you need to handle the redirect to the OAuth provider's authentic
const { data, error } = await supabase.auth.signInWithOAuth({
provider,
options: {
- redirectTo: '/auth/callback',
+ redirectTo: 'http://example.com/auth/callback',
},
})