Fix signalr authentication
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2020-09-30 18:30:36 +02:00
parent 84d6f44e9b
commit 7bdb48b644
1 changed files with 2 additions and 2 deletions

View File

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