Hi! I'm trying to implement SuperTokens social + e...
# support-questions-legacy
f
Hi! I'm trying to implement SuperTokens social + email/pass together with Hasura actions, nest.js backend and a react-native front end. I've come across a problem that i don't really understand. I have a functional action in hasura, that for all i know, runs the function in the nest backend and returns a successful login from Supertokens. But for some reason, the session is undefined in the react native client. Does this ring any bells for anyone? I'm not getting any errors or trace stacks, that's what makes this hard. I just want to understand why my sessions is not set. /all the best, Farmo-dev
r
hey @farmodev8853
@nkshah2 can help here.
f
Hi! thanks!
n
Hi, What are you using for making network requests? (axios, fetch, node-fetch etc)
f
oh right, we are using apollo
n
Ah right, can you try making the request using fetch to see if the issue persists just to rule it out
f
for sure
I got a session when i used fetch
so there's something in the apollo-hasura->backend setupt
n
Right so we currently support fetch and axios (or anything that internally uses fetch). I believe Apollo uses xmlhttprequest internally which we are currently working towards
f
ah! All right, then we can at least establish that everything is set up correctly on our end
So thanks for ur time 🙂
n
Happy to help (kinda?), if you like you can create an issue for this and keep track of when native support for Apollo will land
f
Do you have any tip on how we could be able to set the session-token manually as a temporary fix for our situation?
bypass ur middlewear
n
Implementing it yourself will be complicated (You could for example use our react-native SDK as a reference to implement it). Another approach is to enable JWTs and use those instead
f
all right, we'll have to discuss it i think. THink it through
3 Views