feat: jwt auth
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user