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

This commit is contained in:
Oleg Polin authored and GitHub committed 2025-11-04 17:21:25 +00:00
1 parent 4f4497e355
commit ac8d39780a
1 file changed
+2 -2
@@ -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');
};
```