Skip to content

Commit

Permalink
Check access token before firing auth change event (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Jun 5, 2024
1 parent 870679f commit 69260da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authentication/TabnineAuthenticationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default class TabnineAuthenticationProvider
});
}

if (last && current) {
if (last && current && last.accessToken !== current.accessToken) {
this.sessionsChangeEventEmitter.fire({
removed: [toSession(last)],
added: [toSession(current)],
Expand Down

0 comments on commit 69260da

Please sign in to comment.