You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: