When changing the settings.API_PATH the BeaerTransport tokenUrl should also change. This way swagger auth works also seamless with the API_PATH change. Does this make sense to you?
diff --git a/{{cookiecutter.project_slug}}/backend/app/deps/users.py b/{{cookiecutter.project_slug}}/backend/app/deps/users.py
index bece38a..7dff0f7 100644
--- a/{{cookiecutter.project_slug}}/backend/app/deps/users.py
+++ b/{{cookiecutter.project_slug}}/backend/app/deps/users.py
@@ -15,7 +15,8 @@ from app.core.config import settings
from app.deps.db import CurrentAsyncSession
from app.models.user import User as UserModel
-bearer_transport = BearerTransport(tokenUrl="auth/jwt/login")
+bearer_transport = BearerTransport(tokenUrl=f"{settings.API_PATH}/auth/jwt/login")
When changing the settings.API_PATH the BeaerTransport tokenUrl should also change. This way swagger auth works also seamless with the API_PATH change. Does this make sense to you?