Directly initialize JwtHelperService in auth service

This commit is contained in:
stijn committed 2025-07-06 19:14:06 +02:00
1 parent 04310e1cce
commit 42f0961f13
2 files changed
+3 -19

No files matched your search

+2 -2
View File
@@ -15,11 +15,11 @@ export class AuthService {
private userClaimsSubject = new BehaviorSubject<JwtClaims | null>(null);
public userClaims$ = this.userClaimsSubject.asObservable();
private jwtHelper = new JwtHelperService();
constructor(
private loginService: LoginService,
private snackBar: MatSnackBar,
private jwtHelper: JwtHelperService
private snackBar: MatSnackBar
) {
// Check if user is already logged in on service initialization
this.checkAuthStatus();