From 13c9d0f53c5a65b6e5f8f5c45343f1589521002b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 22 Jan 2026 20:09:42 -0800 Subject: deps(sveltekit): Migrate to SvelteKit 2 --- src/routes/api/authentication/log-out/+server.ts | 2 +- src/routes/api/oauth/refresh/+server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes/api') diff --git a/src/routes/api/authentication/log-out/+server.ts b/src/routes/api/authentication/log-out/+server.ts index 305c846f..26b5dd2c 100644 --- a/src/routes/api/authentication/log-out/+server.ts +++ b/src/routes/api/authentication/log-out/+server.ts @@ -11,5 +11,5 @@ export const GET = ({ cookies }) => { secure: false }); - throw redirect(303, root('/')); + redirect(303, root('/')); }; 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