Spaces:
Runtime error
Runtime error
Commit
·
55a89aa
1
Parent(s):
f46dbf9
redirect api
Browse files
src/components/sign-in-with-hf-button.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect } from "react";
|
|
| 4 |
import { jwtDecode } from "jwt-decode";
|
| 5 |
|
| 6 |
const CLIENT_ID = "a67ef241-fb7e-4300-a6bd-8430a7565c9a";
|
| 7 |
-
const REDIRECT_URI = "
|
| 8 |
const SCOPE = "openid%20profile%20email%20inference-api";
|
| 9 |
const STATE = "1234567890";
|
| 10 |
const SSO_URL = `https://huggingface.co/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=${SCOPE}&prompt=consent&state=${STATE}`;
|
|
|
|
| 4 |
import { jwtDecode } from "jwt-decode";
|
| 5 |
|
| 6 |
const CLIENT_ID = "a67ef241-fb7e-4300-a6bd-8430a7565c9a";
|
| 7 |
+
const REDIRECT_URI = "https://huggingfacetb-wikispeedia.hf.space/";
|
| 8 |
const SCOPE = "openid%20profile%20email%20inference-api";
|
| 9 |
const STATE = "1234567890";
|
| 10 |
const SSO_URL = `https://huggingface.co/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=${SCOPE}&prompt=consent&state=${STATE}`;
|