I am working on a ReactJs project.
I have a function that returns a promise with the user data {Promise < user >}.
This function is called using window.myAuth.isUserLoggedIn()
in the .tsx file.
The response can be seen in the console-
I want to store the value returned by this promise in some local variable of the tsx file.
How can i do this?