Closed mengnans closed 2 years ago
Hey! this is a known issue, and we are working on supporting HttpClient by adding interceptors to XMLHttpRequest. This has not been released yet, but feel free to use it:
npm i git+https://github.com:supertokens/supertokens-website.git#xmlhttprequest-interception
You no longer need to add axios interceptors - using HttpClient should just work after calling supertokens.init.
Keeping this issue open until we release this.
Thanks a lot @rishabhpoddar
We now support XHR interception in version >= 0.3.0, therefore Angular httpClient should work out of the box.
First of all, I have to say thanks to this package, we all very much in love with supertokens.
We are having some troubles when setting up supertokens with our Angular project.
We are getting a message says:
However, under the hood Angular isn't using fetch, I reckon it's using httpClient (Correct me I am wrong, as I am pretty much new to Angular). So our Angular request isn't setting withCredential to true. We kinda fix it by doing this:
FYI, we are not facing above issues with the React solution.
Thanks in advance.