diff --git a/backend/src/main/java/com/example/backend/config/SecurityConfig.java b/backend/src/main/java/com/example/backend/config/SecurityConfig.java index ea4c93f..6bfe020 100644 --- a/backend/src/main/java/com/example/backend/config/SecurityConfig.java +++ b/backend/src/main/java/com/example/backend/config/SecurityConfig.java @@ -30,7 +30,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .exceptionHandling(e -> e .authenticationEntryPoint(new HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED))) .oauth2Login(o -> o.defaultSuccessUrl(appUrl)) - .logout(l -> l.logoutUrl("/api/auth/logout")); + .logout(l -> l.logoutUrl("/api/auth/logout").logoutSuccessUrl(appUrl)); return http.build(); } } diff --git a/frontend/src/Component/App.tsx b/frontend/src/Component/App.tsx index a9318ae..95c8705 100644 --- a/frontend/src/Component/App.tsx +++ b/frontend/src/Component/App.tsx @@ -4,17 +4,15 @@ import Details from "./App/Details.tsx"; import Header from "./App/Header.tsx"; import Footer from "./App/Footer.tsx"; - function App() { - return ( <> -
+
- }/> - }/> + }/> + }/> -