Spaces:
Sleeping
Sleeping
Update frontend/src/App.tsx
Browse files- frontend/src/App.tsx +1 -1
frontend/src/App.tsx
CHANGED
@@ -25,7 +25,7 @@ function App() {
|
|
25 |
if (session?.socket.connected) {
|
26 |
return;
|
27 |
}
|
28 |
-
fetch(
|
29 |
.then((res) => res.json())
|
30 |
.then((data) => {
|
31 |
connect({ client: apiClient, userEnv, accessToken: `Bearer: ${data.token}` });
|
|
|
25 |
if (session?.socket.connected) {
|
26 |
return;
|
27 |
}
|
28 |
+
fetch(('/custom-auth'))
|
29 |
.then((res) => res.json())
|
30 |
.then((data) => {
|
31 |
connect({ client: apiClient, userEnv, accessToken: `Bearer: ${data.token}` });
|