from typing import Optionalimport chainlit as cl@cl.password_auth_callbackdefauth_callback(username:str, password:str):# Fetch the user matching username from your database# and compare the hashed password with the value stored in the databaseif(username, password)==("admin","admin"):return cl.User( identifier="admin", metadata={"role":"admin","provider":"credentials"})else:returnNone