aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/animeschedule/oauth/callback/+server.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-01 16:20:51 -0800
committerFuwn <[email protected]>2026-03-01 16:21:02 -0800
commiteae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch)
tree1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/routes/api/animeschedule/oauth/callback/+server.ts
parentchore(tooling): remove legacy eslint and prettier (diff)
downloaddue.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz
due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/routes/api/animeschedule/oauth/callback/+server.ts')
-rw-r--r--src/routes/api/animeschedule/oauth/callback/+server.ts30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/routes/api/animeschedule/oauth/callback/+server.ts b/src/routes/api/animeschedule/oauth/callback/+server.ts
index 2b96ab81..294abc05 100644
--- a/src/routes/api/animeschedule/oauth/callback/+server.ts
+++ b/src/routes/api/animeschedule/oauth/callback/+server.ts
@@ -1,17 +1,17 @@
-import { callback } from '$lib/Utility/oauth.js';
-import { env } from '$env/dynamic/private';
-import { env as env2 } from '$env/dynamic/public';
+import { callback } from "$lib/Utility/oauth.js";
+import { env } from "$env/dynamic/private";
+import { env as env2 } from "$env/dynamic/public";
export const GET = async ({ url, cookies }) =>
- callback({
- url,
- cookies,
- cookie: 'animeschedule',
- authorise: 'https://animeschedule.net/api/v3/oauth2/token',
- redirect: '/settings',
- client: {
- id: env2.PUBLIC_ANIMESCHEDULE_CLIENT_ID,
- secret: env.ANIMESCHEDULE_CLIENT_SECRET,
- redirectURI: env2.PUBLIC_ANIMESCHEDULE_REDIRECT_URI
- }
- });
+ callback({
+ url,
+ cookies,
+ cookie: "animeschedule",
+ authorise: "https://animeschedule.net/api/v3/oauth2/token",
+ redirect: "/settings",
+ client: {
+ id: env2.PUBLIC_ANIMESCHEDULE_CLIENT_ID,
+ secret: env.ANIMESCHEDULE_CLIENT_SECRET,
+ redirectURI: env2.PUBLIC_ANIMESCHEDULE_REDIRECT_URI,
+ },
+ });