from typing import Optionalimport chainlit as cl@cl.header_auth_callbackdefheader_auth_callback(headers: Dict)-> Optional[cl.User]:# Verify the signature of a token in the header (ex: jwt token)# or check that the value is matching a row from your databaseif headers.get("test-header")=="test-value":return cl.User(identifier="admin", metadata={"role":"admin","provider":"header"})else:returnNone