About This is JWT authentication example with FastAPI . It uses an async PostgreSQL connection with SqlAlchemy ORM. There is an alembic config also.