update authservice

This commit is contained in:
john 2025-05-18 21:20:32 +02:00
parent ca0a6b2950
commit 27098ec9fa
3 changed files with 108 additions and 19 deletions

View file

@ -6,15 +6,13 @@ import { MediaService } from './app/media/mediaService.ts'
import SignupPage from './app/auth/pages/SignupPage.tsx'
import LoginPage from './app/auth/pages/LoginPage.tsx'
import { AuthService } from './app/auth/authService.ts'
import { useUser } from './app/user/userStore.ts'
import LogoutPage from './app/auth/pages/LogoutPage.tsx'
import UnauthorizedHandler from './app/auth/components/UnauthorizedHandler.tsx'
function App() {
const { user } = useUser()
const postService = new PostsService()
const mediaService = new MediaService()
const authService = new AuthService(user)
const authService = new AuthService()
return (
<BrowserRouter>