I have tested calling a function inside another function and Updating a stored variable in the nested function but it didn’t work. It only works when the function that is updating is called separately not nested. Here is a screenshot of the Functions Implementations.
When I call SignUp (SignIn doesn’t update the stored variable), however, when I call sign in afterwards it works. I hope this note can help someone, and if it is not a bug and there is a problem with my logic, let me know.