aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/oauth/refresh/+server.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-07 04:32:26 -0800
committerFuwn <[email protected]>2023-12-07 04:32:26 -0800
commit932e9eec6febec12d951b927f3c746152338f734 (patch)
tree15727ec3e4b9e5deb1b5580de37301f53f41e6ce /src/routes/api/oauth/refresh/+server.ts
parentci(earthly): don't pin docker (diff)
downloaddue.moe-932e9eec6febec12d951b927f3c746152338f734.tar.xz
due.moe-932e9eec6febec12d951b927f3c746152338f734.zip
fix(earthly): environment variable types
Diffstat (limited to 'src/routes/api/oauth/refresh/+server.ts')
-rw-r--r--src/routes/api/oauth/refresh/+server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/api/oauth/refresh/+server.ts b/src/routes/api/oauth/refresh/+server.ts
index 43e9136c..0e6eef8c 100644
--- a/src/routes/api/oauth/refresh/+server.ts
+++ b/src/routes/api/oauth/refresh/+server.ts
@@ -7,8 +7,8 @@ export const GET = async ({ cookies }) => {
const formData = new FormData();
formData.append('grant_type', 'refresh_token');
- formData.append('client_id', env2.PUBLIC_ANILIST_CLIENT_ID);
- formData.append('client_secret', env.ANILIST_CLIENT_SECRET);
+ formData.append('client_id', env2.PUBLIC_ANILIST_CLIENT_ID as string);
+ formData.append('client_secret', env.ANILIST_CLIENT_SECRET as string);
formData.append(
'refresh_token',
JSON.parse(cookies.get('user') || '{ refresh_token: null }')['refresh_token']