diff options
| author | Fuwn <[email protected]> | 2025-06-09 20:24:57 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 20:24:57 -0700 |
| commit | 7833f8738258e0db2c1acc858e06968771053028 (patch) | |
| tree | 60835afeb035f66317bad181e4c92372a2f0a524 /src | |
| parent | fix(List): Display filtered media list length (diff) | |
| download | due.moe-7833f8738258e0db2c1acc858e06968771053028.tar.xz due.moe-7833f8738258e0db2c1acc858e06968771053028.zip | |
deps(SvelteKit): Migrate to SvelteKit 2
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Utility/oauth.ts | 2 | ||||
| -rw-r--r-- | src/routes/api/authentication/log-out/+server.ts | 2 | ||||
| -rw-r--r-- | src/routes/api/oauth/refresh/+server.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Utility/oauth.ts b/src/lib/Utility/oauth.ts index 5c05bff9..c42739c3 100644 --- a/src/lib/Utility/oauth.ts +++ b/src/lib/Utility/oauth.ts @@ -47,5 +47,5 @@ export const callback = async (options: CallbackOptions) => { } ); - throw redirect(303, options.redirect ?? '/'); + redirect(303, options.redirect ?? '/'); }; 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); }; |