Fix signalr authentication
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-09-30 18:30:36 +02:00
parent 84d6f44e9b
commit 7bdb48b644

View File

@ -43,7 +43,7 @@ export class EventService {
private Authenticate() { private Authenticate() {
var accessToken = this.oauthService.getAccessToken(); var accessToken = this.oauthService.getAccessToken();
if (accessToken) { if (this.oauthService.hasValidAccessToken()) {
this._connection.send('authenticate', this.oauthService.getAccessToken()); this._connection.send('authenticate', this.oauthService.getAccessToken());
this.authenticated=true; this.authenticated=true;
} else { } else {