supertokens-website icon indicating copy to clipboard operation
supertokens-website copied to clipboard

Limit the number of retries on 401

Open porcellus opened this issue 3 years ago • 0 comments

  • Limit the maximum number of retries on unauthorised response
    • This should only matter in case the backend returns a 401 even after a session refresh
    • This points to a coding error, but still - an infinite loop is bad
  • Add a hard-to-miss error to the console to aid in debugging the issue

porcellus avatar Oct 17 '22 08:10 porcellus