From 7833f8738258e0db2c1acc858e06968771053028 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 9 Jun 2025 20:24:57 -0700 Subject: deps(SvelteKit): Migrate to SvelteKit 2 --- src/routes/api/oauth/refresh/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/api/oauth') diff --git a/src/routes/api/oauth/refresh/+server.ts b/src/routes/api/oauth/refresh/+server.ts index 66b4209c..13f4400c 100644 --- a/src/routes/api/oauth/refresh/+server.ts +++ b/src/routes/api/oauth/refresh/+server.ts @@ -25,6 +25,6 @@ export const GET = async ({ url, cookies }) => { secure: false }); - if (url.searchParams.get('redirect')) throw redirect(303, '/'); + if (url.searchParams.get('redirect')) redirect(303, '/'); else return Response.json(newUser); }; -- cgit v1.2.3