enzostvs HF staff commited on
Commit
02ff971
β€’
1 Parent(s): f3e5514
Files changed (1) hide show
  1. src/routes/api/auth/+server.ts +2 -0
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: {