I can't change a variable of another widget

Hi. I’m trying to change a variable that is located in another level.


When a user logs in the JWT 0 variable gets equal to the JWT token. I did that for authentication. When the widget changes to another level i want to use the JWT 0 variable to authenticate. But i couldn’t do it. Can you guys help

The easiest way of having variables persist between levels is to save them in the GameInstance class.

it worked! thank you. took a lot of time to figure it out tho