Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ad logs
Browse files
src/routes/api/auth/+server.ts
CHANGED
@@ -20,6 +20,8 @@ export async function POST({ request }) {
|
|
20 |
`${process.env.OAUTH_CLIENT_ID}:${process.env.OAUTH_CLIENT_SECRET}`
|
21 |
).toString("base64")}`;
|
22 |
|
|
|
|
|
23 |
const request_auth = await fetch("https://huggingface.co/oauth/token", {
|
24 |
method: "POST",
|
25 |
headers: {
|
|
|
20 |
`${process.env.OAUTH_CLIENT_ID}:${process.env.OAUTH_CLIENT_SECRET}`
|
21 |
).toString("base64")}`;
|
22 |
|
23 |
+
console.log(process.env.OAUTH_CLIENT_ID, process.env.OAUTH_CLIENT_SECRET, REDIRECT_URI, Authorization, code)
|
24 |
+
|
25 |
const request_auth = await fetch("https://huggingface.co/oauth/token", {
|
26 |
method: "POST",
|
27 |
headers: {
|