From 6ae5aa5a85e8bf37b62b5ae7d798f6e4d09946fe Mon Sep 17 00:00:00 2001 From: Dmytro Yurin Date: Fri, 22 May 2026 18:42:20 +0300 Subject: [PATCH] chore: update .gitignore to exclude Netlify directory and add logging for Google OAuth failures --- .gitignore | 1 + apps/api/app/routers/auth.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index a329db9..eecaa41 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ dist/ node_modules/ .nuxt/ .output/ +apps/web/.netlify/ # Env .env diff --git a/apps/api/app/routers/auth.py b/apps/api/app/routers/auth.py index 150090b..807b279 100644 --- a/apps/api/app/routers/auth.py +++ b/apps/api/app/routers/auth.py @@ -1,3 +1,5 @@ +import logging + from fastapi import APIRouter, Cookie, Depends, HTTPException, Request, Response, status from fastapi.responses import RedirectResponse from sqlalchemy.ext.asyncio import AsyncSession @@ -26,6 +28,8 @@ verify_otp, ) +logger = logging.getLogger(__name__) + router = APIRouter() @@ -179,6 +183,7 @@ async def google_callback( try: user, access_token, refresh_token = await auth_service.google_login(db, code) except Exception: + logger.exception("Google OAuth login failed") return error_redirect success_redirect = RedirectResponse(