fix: fix stupid ahh bug where u get logged out when doing fucking anything stupid fucking http interceptor

This commit is contained in:
Constantin Simonis 2025-05-07 14:51:02 +02:00
commit 29a53ea781
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
4 changed files with 15 additions and 15 deletions

View file

@ -8,8 +8,8 @@ import { AuthResponse } from '../model/auth/AuthResponse';
import { User } from '../model/User';
import { environment } from '@environments/environment';
const TOKEN_KEY = 'auth-token';
const USER_KEY = 'auth-user';
const TOKEN_KEY = 'token';
const USER_KEY = 'user';
@Injectable({
providedIn: 'root',
@ -88,7 +88,8 @@ export class AuthService {
next: (user) => {
this.setUser(user);
},
error: () => {
error: (e) => {
console.log(e);
this.logout();
},
});