Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Deploy: Consolidated gold tables, fixed nginx docs routing
Browse files
api/static/assets/index-BzlGF8Kz.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
api/static/index.html
CHANGED
|
@@ -85,7 +85,7 @@
|
|
| 85 |
}
|
| 86 |
}
|
| 87 |
</script>
|
| 88 |
-
<script type="module" crossorigin src="/assets/index-
|
| 89 |
<link rel="stylesheet" crossorigin href="/assets/index-BI6XPZOW.css">
|
| 90 |
</head>
|
| 91 |
<body>
|
|
|
|
| 85 |
}
|
| 86 |
}
|
| 87 |
</script>
|
| 88 |
+
<script type="module" crossorigin src="/assets/index-BzlGF8Kz.js"></script>
|
| 89 |
<link rel="stylesheet" crossorigin href="/assets/index-BI6XPZOW.css">
|
| 90 |
</head>
|
| 91 |
<body>
|
frontend/src/contexts/AuthContext.tsx
CHANGED
|
@@ -73,7 +73,7 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
|
|
| 73 |
|
| 74 |
const fetchUser = async (authToken: string) => {
|
| 75 |
try {
|
| 76 |
-
const response = await fetch(`${API_URL}/
|
| 77 |
headers: {
|
| 78 |
'Authorization': `Bearer ${authToken}`,
|
| 79 |
},
|
|
@@ -99,7 +99,7 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
|
|
| 99 |
const login = (provider: string) => {
|
| 100 |
// Redirect to OAuth endpoint
|
| 101 |
const redirectUri = encodeURIComponent(window.location.origin);
|
| 102 |
-
const authUrl = `${API_URL}/
|
| 103 |
window.location.href = authUrl;
|
| 104 |
};
|
| 105 |
|
|
|
|
| 73 |
|
| 74 |
const fetchUser = async (authToken: string) => {
|
| 75 |
try {
|
| 76 |
+
const response = await fetch(`${API_URL}/auth/me`, {
|
| 77 |
headers: {
|
| 78 |
'Authorization': `Bearer ${authToken}`,
|
| 79 |
},
|
|
|
|
| 99 |
const login = (provider: string) => {
|
| 100 |
// Redirect to OAuth endpoint
|
| 101 |
const redirectUri = encodeURIComponent(window.location.origin);
|
| 102 |
+
const authUrl = `${API_URL}/auth/login/${provider}?redirect_uri=${redirectUri}`;
|
| 103 |
window.location.href = authUrl;
|
| 104 |
};
|
| 105 |
|
frontend/src/pages/Settings.tsx
CHANGED
|
@@ -78,7 +78,7 @@ export default function Settings() {
|
|
| 78 |
|
| 79 |
try {
|
| 80 |
const token = localStorage.getItem('auth_token')
|
| 81 |
-
const response = await fetch(`${API_URL}/
|
| 82 |
method: 'PATCH',
|
| 83 |
headers: {
|
| 84 |
'Content-Type': 'application/json',
|
|
|
|
| 78 |
|
| 79 |
try {
|
| 80 |
const token = localStorage.getItem('auth_token')
|
| 81 |
+
const response = await fetch(`${API_URL}/auth/profile`, {
|
| 82 |
method: 'PATCH',
|
| 83 |
headers: {
|
| 84 |
'Content-Type': 'application/json',
|