Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist/
node_modules/
.nuxt/
.output/
apps/web/.netlify/

# Env
.env
Expand Down
5 changes: 5 additions & 0 deletions apps/api/app/routers/auth.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -26,6 +28,8 @@
verify_otp,
)

logger = logging.getLogger(__name__)

router = APIRouter()


Expand Down Expand Up @@ -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(
Expand Down
Loading