supertokens / supertokens-website

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

Axios refresh error #85

Closed porcellus closed 3 years ago

porcellus commented 3 years ago

Summary of change

We are now calling the session refresh endpoint through axios so that we can reject with an axios response object if the refresh call gets an unexpected error.

Related issues

Test Plan

Added an extra test case

Documentation changes

There are some properties that could be set in preAPIHook that axios does not support. I don't think these be set (or be useful) on this request (e.g., cache & referrerPolicy)

Checklist for important updates

Remaining TODOs: