Hacker News new | ask | show | jobs
by Saig6 1710 days ago
It could be refreshing tokens before every API request in an attempt to avoid 1. API request, 2. 401. 3. refresh token 4. redo request? Not that that makes any sense, msal.js will refresh cached tokens before they time out.
1 comments

Seems unlikely.

It usually works fine for an hour or two after restarting the app - and then it suddenly starts refreshing endlessly as fast as it can.

There's no visible reason why it would suddenly be doing so many API requests, and wasn't doing them before. (And then stops doing them again, after being restarted.)