blob: c5faa859bd591a49038bb3150a1301383448bff3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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: "user",
authorise: "https://anilist.co/api/v2/oauth/token",
client: {
id: env2.PUBLIC_ANILIST_CLIENT_ID,
secret: env.ANILIST_CLIENT_SECRET,
redirectURI: env2.PUBLIC_ANILIST_REDIRECT_URI,
},
});
|