tokens refresh when jwt is expired and added basic axios config

This commit is contained in:
Kai Ritthaler 2025-06-25 07:56:30 +02:00 committed by Luisa Bellitto
parent c48498af95
commit fbf645ba0f
15 changed files with 470 additions and 289 deletions

View file

@ -7,26 +7,29 @@ import Footer from "./components/Footer";
import Header from "./components/header";
import Profile from "./pages/Profile";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import { Auth } from "./api/Auth";
function App() {
return (
<Router>
<div className="App">
<Header />
<Routes>
<Route
path="/login"
element={<LoginAndSignUpPage signupProp={false} />}
></Route>
<Route
path="/register"
element={<LoginAndSignUpPage signupProp={true} />}
></Route>
<Route path="/profile" element={<Profile />}></Route>
</Routes>
<Footer />
</div>
</Router>
<Auth>
<Router>
<div className="App">
<Header />
<Routes>
<Route
path="/login"
element={<LoginAndSignUpPage signupProp={false} />}
></Route>
<Route
path="/register"
element={<LoginAndSignUpPage signupProp={true} />}
></Route>
<Route path="/profile" element={<Profile />}></Route>
</Routes>
<Footer />
</div>
</Router>
</Auth>
);
}