supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions

Home Page:https://supertokens.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limit the number of retries on 401

porcellus opened this issue · 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