mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03: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');
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user