Spaces:
Running
Running
Update app/actions/auth.ts
Browse files- app/actions/auth.ts +3 -1
app/actions/auth.ts
CHANGED
|
@@ -13,6 +13,8 @@ export async function getAuth() {
|
|
| 13 |
url +
|
| 14 |
"/auth/callback";
|
| 15 |
|
| 16 |
-
const loginRedirectUrl = `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${redirect_uri}&response_type=code&scope=openid%20profile%20write-repos%20manage-repos%20inference-api&prompt=consent&state=1234567890`;
|
|
|
|
|
|
|
| 17 |
return loginRedirectUrl;
|
| 18 |
}
|
|
|
|
| 13 |
url +
|
| 14 |
"/auth/callback";
|
| 15 |
|
| 16 |
+
// const loginRedirectUrl = `https://huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${redirect_uri}&response_type=code&scope=openid%20profile%20write-repos%20manage-repos%20inference-api&prompt=consent&state=1234567890`;
|
| 17 |
+
const loginRedirectUrl = `https://api-inference.huggingface.co/oauth/authorize?client_id=${process.env.OAUTH_CLIENT_ID}&redirect_uri=${redirect_uri}&response_type=code&scope=openid%20profile%20write-repos%20manage-repos%20inference-api&prompt=consent&state=1234567890`;
|
| 18 |
+
|
| 19 |
return loginRedirectUrl;
|
| 20 |
}
|