Fix signalr authentication
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
84d6f44e9b
commit
7bdb48b644
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user