[auth] fix auth not being cleared after logout

This commit is contained in:
nymkappa
2023-08-21 15:01:31 +02:00
parent 3321ae0f1f
commit b8222bff43
2 changed files with 8 additions and 3 deletions

View File

@@ -368,7 +368,7 @@ export class ApiService {
return of(null);
}
localStorage.setItem('auth', null);
localStorage.removeItem('auth');
return this.httpClient.post(`${SERVICES_API_PREFIX}/auth/logout`, {
headers: { 'Authorization': auth.token }
});