I'm following this documentation with UserInterface and I want to understand refreshUser()
I logging in, and change the username ( foo -> bar ) in my database, change the page but the user is still logged with name bar.
In this part of documentation I can read that for security reason the user will be logged out