https://supertokens.com/ logo
Session not found for android
a

Axel Jönsson

05/15/2023, 12:31 PM
Hi again! I've faced an issue that seems to be related to ios/android and how the session is handled between the two. My guard in my nestjs instance throws an error and can't find the session when i'm using an Android device, but works fine on IOS.
n

nkshah2

05/15/2023, 12:41 PM
Hi @Axel Jönsson Do you see any headers or cookies being sent from android in your request? And you are using react native right?
a

Axel Jönsson

05/15/2023, 12:50 PM
yes, headers and cookies, no session thou
n

nkshah2

05/15/2023, 12:51 PM
Do you see values for access token and refresh token being sent?
a

Axel Jönsson

05/15/2023, 12:51 PM
yes! both are there
n

nkshah2

05/15/2023, 12:51 PM
Can you send the frontend and backend config you are using
a

Axel Jönsson

05/15/2023, 12:55 PM
just the initfunction basically?
n

nkshah2

05/15/2023, 12:55 PM
Yep
a

Axel Jönsson

05/15/2023, 12:55 PM
front end

https://cdn.discordapp.com/attachments/1107646432321749093/1107652477496590416/Skarmavbild_2023-05-15_kl._14.55.21.png

https://cdn.discordapp.com/attachments/1107646432321749093/1107652560942280754/Skarmavbild_2023-05-15_kl._14.55.45.png

backend
n

nkshah2

05/15/2023, 12:57 PM
The backend config image seems wrong
a

Axel Jönsson

05/15/2023, 12:58 PM
oh
anything specific come into mind? 😅
n

nkshah2

05/15/2023, 1:06 PM
Oh no I meant those are the env variables and not the init call :p
a

Axel Jönsson

05/15/2023, 1:08 PM
hehe oh, right!
sry

https://cdn.discordapp.com/attachments/1107646432321749093/1107655976460497016/Skarmavbild_2023-05-15_kl._15.09.18.png

that's the end of it where the init call is made
n

nkshah2

05/15/2023, 1:10 PM
What versions of the sdks are you using again?
a

Axel Jönsson

05/15/2023, 1:12 PM
sry i have to continue tomorrow, child is going nuts hjere!
n

nkshah2

05/15/2023, 1:13 PM
Sure, we can can on a quick call tomorrow. Will be easier to debug, you can ping on this thread when you’re available for the call tomorrow
a

Axel Jönsson

05/16/2023, 7:15 AM
morning! I'm back and ready to debug 😉
actually we are making a bit of headway and might suspect that it is not anythiing wrong with the supertokens setup
or maybe not...