Skip to content

Commit 6ca28aa

Browse files
committed
secure(backend): hardcode secure=True for Google OAuth state cookie to satisfy CodeQL
1 parent afcee5c commit 6ca28aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend-api/app/api/v1/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def google_authorize() -> RedirectResponse:
177177
value=state,
178178
max_age=600,
179179
httponly=True,
180-
secure=settings.BACKEND_PUBLIC_URL.startswith("https://"),
180+
secure=True,
181181
samesite="lax",
182182
path=f"{settings.API_PREFIX}/auth/google/callback",
183183
)

0 commit comments

Comments
 (0)