Set up the simple login UI for users to interact with. Able to display logged-in user name on the home page.
There's an issue tho -- Tried to store the username fetched from WebSocket client in a global var to make it accessible to other pages, but it won't stay valid after switching between pages.
Right now, once you logged in, you would be able to see username displaying on the signed in: {username} on the home page, but it won't be able to access again once you go to editor and get back to home again
Set up the simple login UI for users to interact with. Able to display logged-in user name on the home page.
There's an issue tho -- Tried to store the username fetched from WebSocket client in a global var to make it accessible to other pages, but it won't stay valid after switching between pages.
Right now, once you logged in, you would be able to see username displaying on the
signed in: {username}
on the home page, but it won't be able to access again once you go toeditor
and get back tohome
again