Skip to content

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

docs: Fix SvelteKit OAuth PCKE flow syntax (#39940) (#39944)

Oleg Polinac8d39780a26
diff --git a/apps/docs/content/_partials/oauth_pkce_flow.mdx b/apps/docs/content/_partials/oauth_pkce_flow.mdx
index f1035c08937..cb538ad0437 100644
--- a/apps/docs/content/_partials/oauth_pkce_flow.mdx
+++ b/apps/docs/content/_partials/oauth_pkce_flow.mdx
@@ -123,12 +123,12 @@ export const GET = async (event) => {
if (code) {
const { error } = await supabase.auth.exchangeCodeForSession(code)
if (!error) {
- throw redirect(303, `/${next.slice(1)}`);
+ redirect(303, `/${next.slice(1)}`);
}
}
// return the user to an error page with instructions
- throw redirect(303, '/auth/auth-code-error');
+ redirect(303, '/auth/auth-code-error');
};
```