feat: jwt auth

This commit is contained in:
eneller
2026-03-16 23:41:13 +01:00
parent fa2203927a
commit 7498afe074
10 changed files with 66 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ export const authGuard: CanActivateFn = (route, state) => {
const api = inject(APIService);
const router = inject(Router);
//TODO check for cookie
return api.isAuthenticated$.pipe(
map((isAuthenticated) => {
if (isAuthenticated) {