Here I see logout function. But have can I check i...
# support-questions-legacy
o
Here I see logout function. But have can I check is user signed in or not when I get success on SignIn or SignUp submit?
o
Thank you for being in touch! But I need React Native solution. Does it exist?
r
yes. Click on custom UI
on the top right
and you will see mobile code tabs'
o
Thanks! What I receive when I call this function? An object with some properties: _h, _i, _j, _k what do they mean?

https://cdn.discordapp.com/attachments/1110519717623496805/1110524309660770314/Screenshot_2023-05-23_at_14.04.47.png

r
can i see your code?
o
sure

https://cdn.discordapp.com/attachments/1110519717623496805/1110525096252166165/Screenshot_2023-05-23_at_14.09.23.png

https://cdn.discordapp.com/attachments/1110519717623496805/1110525170323566682/Screenshot_2023-05-23_at_14.04.47.png

r
you need to use
await
in front of
doesSessionExist
o
no, in 18th line Im just calling function, but in 15th - it is declared
and in 16th you can notice reutrn await SuperTokens.doesSessionExist();
with "await"
r
so you also need to add await when calling your own function
cause it's async
o
still getting the same...

https://cdn.discordapp.com/attachments/1110519717623496805/1110530277433950322/Screenshot_2023-05-23_at_14.30.12.png

https://cdn.discordapp.com/attachments/1110519717623496805/1110530277840801884/Screenshot_2023-05-23_at_14.30.26.png

Okay, I think, I've get it, this is a promise wrapper
r
you should read up on promises and JS 🙂
2 Views