supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

fix: fix an infinite refresh loop in legacy axios interceptor #211

Closed porcellus closed 1 year ago

porcellus commented 1 year ago

Summary of change

Adds a special param to the Axios request config if the SDK sets the authorization header so we can check it to remove the header when retrying even if the access token changed during the request.

Related issues

Test Plan

A test for this case was added to the base branch already.

Documentation changes

N/A, bugfix.

Checklist for important updates

github-actions[bot] commented 1 year ago

size-limit report 📦

Path Size
lib/build/bundleEntry.js 18.88 KB (+0.15% 🔺)