supertokens / supertokens-website

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

Support interception if request made to relative path #238

Closed rishabhpoddar closed 9 months ago

rishabhpoddar commented 11 months ago

Right now, if there is no domain in the request, and is being made to a relative path, it will not do the network interception even though the apiDomain configuration might be equal to the loaded URL on the browser. So we should instead check the current URL on the browser as opposed to not doing interception at all.

rishabhpoddar commented 9 months ago

We cannot reproduce the issue, and have added tests to make sure it works.