After authenticating user with the following auth_user method in the Gradio user interface, I want to show the username information at the top of next page (like “Active User = User1”). However, it is not possible to use username in the next page after login. Therefore, I tried to include an invisible component named username_holder and store the current user name on this component but it didn’t work.
def auth_user(username, password):
return username == password