update authservice
This commit is contained in:
parent
ca0a6b2950
commit
27098ec9fa
3 changed files with 108 additions and 19 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue