Hello all, apologies if this has come up before. I did a search on here but didn't find quite the sa...
a
Hello all, apologies if this has come up before. I did a search on here but didn't find quite the same issue. I am self hosting and using a react-native (expo) frontend. My /auth/signin api endpoint correctly returns st-access-token and st-refresh-token but the frontend SDK does not seem to report a session once done.
I have used both fetch and axios with addAxiosInterceptors(), and neither seems to have any impact. My apiDomain values all seem to match up too.
If anybody has any clues on how I can further debug how or why it picks up the session I'd appreciate it.
SuperTokens.getUserId() says no session after a valid response from signin, and neither do further API calls attach a bearer token.
Ok, I just rubber ducked myself here!
If anybody has this issue, the problem for me was that I had attached the interceptors to axios itself, when I was using axios.create
r
hey @acidHL - whats the configured apiDomain on the frontend? Also, can you show me the request headers for the sign in API call?
a
Hello, I actually managed to resolve this - it was a typo. I had applied the interceptors to axios instead of the output of axios.create() - its all working now. Thanks!
r
Great!