Fix writing token to API client
All checks were successful
Quality Check / Linting (push) Successful in 21s
Quality Check / Linting (pull_request) Successful in 21s

This commit is contained in:
Dominik Säume 2025-01-08 14:44:29 +01:00
parent 11e417bb07
commit 473100ab0c

View file

@ -3,6 +3,8 @@ import UserData from '@core/auth/UserData';
import { OidcSecurityService } from 'angular-auth-oidc-client';
import { Observable } from 'rxjs';
import { OpenAPI } from '../ems';
@Injectable({
providedIn: 'root'
})
@ -18,6 +20,7 @@ export class AuthService {
} : undefined);
});
});
this.oidcSecurityService.getAccessToken().subscribe(token => OpenAPI.TOKEN = token);
}