aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/oauth/refresh/+server.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-12-01 13:26:12 -0800
committerFuwn <[email protected]>2025-12-01 13:26:12 -0800
commitff930d660b37e79ec17394a534f2dbf655097eff (patch)
tree99889571068e0e3566f18dd1eee7de3d93886470 /src/routes/api/oauth/refresh/+server.ts
parentdeps: Revert to commit 731733e (diff)
downloaddue.moe-ff930d660b37e79ec17394a534f2dbf655097eff.tar.xz
due.moe-ff930d660b37e79ec17394a534f2dbf655097eff.zip
fix: Throw redirects
Diffstat (limited to 'src/routes/api/oauth/refresh/+server.ts')
-rw-r--r--src/routes/api/oauth/refresh/+server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/api/oauth/refresh/+server.ts b/src/routes/api/oauth/refresh/+server.ts
index 13f4400c..66b4209c 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')) redirect(303, '/');
+ if (url.searchParams.get('redirect')) throw redirect(303, '/');
else return Response.json(newUser);
};