okey, there is something i don't get πŸ™ˆ I have pa...
# support-questions
r
okey, there is something i don't get πŸ™ˆ I have passwordless with nestjs in the backend. I got Cookies back. I expect, if i call
SuperTokens.doesSessionExist()
directly after the response, I should have a valid Session. thats not the case. Do I miss a step?
r
Are you using axios on the frontend? If yes, did you add interceptors to them when you make the API call?
Is the apiDomain on the frontend correctly configured? Are you actually querying that API or a different one?
r
no, angualr httpClient. but i have a HttpInterceptor, that adds the
withCredentials: true
flag
r
That won’t work unfortunately
You have to use axios or fetch
Nothing else will work
r
πŸ˜•
any reason why not?
r
Cause we add extra steps in our interceptor for it to all work. For example, setting frontend cookies so that doesSessionExist works, or calling refresh seesion automatically when needed
And we have implemented interceptors only for axios and fetch
So you will have to make all your API calls from the frontend using axios or fetch
r
oke
r
Yea!
3 Views