JetBrains: we check the access token twice at plugin load
Created by: vdavid
Context
When loading the plugin, we do an access token verification in index.ts
, and then another one in App.tsx
.
Problem
As @philipp-spiess pointed it out here, we always do the two requests with the same token, so the second request is not needed.
Solution
Suggested solution: Memoize getAuthenticatedUser
and noop when it was called again with the same accessToken