Added basic authentication and chat token generator