https://starlette-login.readthedocs.io
Starlette-Login provides user session management for Starlette. Much inspired by Flask-Login, it handles the common tasks of logging in, logging out, and remembering your users' sessions over extended periods of time.
pip install Starlette-Login
basic auth
Authentication