Skip to content

Commit

Permalink
Updated: access_token attribute to underscore_case
Browse files Browse the repository at this point in the history
  • Loading branch information
Miexil committed Nov 18, 2024
1 parent 37236f3 commit eae5932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/services/activity-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class ActivityWatcher extends Service {
}

private checkIfUserNeedsToBeDisconnected(event: NotificationEvent): void {
if (this.session.data.authenticated.access_token === event.payload.data.accessToken) {
if (this.session.data.authenticated.access_token === event.payload.data.access_token) {
this.session.tooManyConnections = true;
this.session.invalidate();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/services/activity-watcher-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module('Unit | Service | activity-watcher', function (hooks) {
payload: {
notification_type: 'token_destroyed',
data: {
accessToken: 'some-token'
access_token: 'some-token'
}
}
});
Expand Down

0 comments on commit eae5932

Please sign in to comment.