diff --git a/crawler/frontend/src/App.tsx b/crawler/frontend/src/App.tsx
index 59bff44..6524f7e 100644
--- a/crawler/frontend/src/App.tsx
+++ b/crawler/frontend/src/App.tsx
@@ -28,11 +28,9 @@ function App() {
getUser().then(setUser);
}, []);
- const [isLoading, setIsLoading] = useState(false)
const [isParametersModalOpen, setIsParametersModalOpen] = useState(true)
const [error, setError] = useState('')
const fetchData = async () => {
- setIsLoading(true);
try {
const accessToken = user?.access_token;
@@ -52,7 +50,6 @@ function App() {
setError('Failed to fetch data: ' + err);
alert(error)
} finally {
- setIsLoading(false);
}
};
const onSubmit = async () => {
@@ -61,7 +58,6 @@ function App() {
if (data) {
setListingData(data);
}
- setIsLoading(false);
setIsParametersModalOpen(false)
}
@@ -69,8 +65,6 @@ function App() {
if (!user) {
return
}
- const nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
-
return (
<>
diff --git a/crawler/frontend/src/auth/config.ts b/crawler/frontend/src/auth/config.ts
index 8c00397..887df24 100644
--- a/crawler/frontend/src/auth/config.ts
+++ b/crawler/frontend/src/auth/config.ts
@@ -3,7 +3,7 @@ import { WebStorageStateStore } from "oidc-client-ts";
export const oidcConfig = {
authority: "https://authentik.viktorbarzin.me/application/o/wrongmove/",
client_id: "5AJKRgcdgVm1OyApBzFkadDFfStW9a555zwv2MOe",
- redirect_uri: "https://devvm.viktorbarzin.lan/callback",
+ redirect_uri: import.meta.env.MODE === 'development' ? "https://devvm.viktorbarzin.lan/callback" : "https://wrongmove.viktorbarzin.me/callback",
userStore: new WebStorageStateStore({ store: window.localStorage }),
response_type: 'code', // PKCE flow (recommended for SPAs)
scope: 'openid profile email', // Requested scopes