diff --git a/projects/common/src/fm/services/event.service.ts b/projects/common/src/fm/services/event.service.ts index d71e489..a0eb406 100644 --- a/projects/common/src/fm/services/event.service.ts +++ b/projects/common/src/fm/services/event.service.ts @@ -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 {