Skip to content

Commit 363b56c

Browse files
authored
Merge pull request #24 from denvudd/fix/google-oauth
chore: update .gitignore to exclude Netlify directory and add logging…
2 parents 0c27b0a + 6ae5aa5 commit 363b56c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dist/
1212
node_modules/
1313
.nuxt/
1414
.output/
15+
apps/web/.netlify/
1516

1617
# Env
1718
.env

apps/api/app/routers/auth.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import logging
2+
13
from fastapi import APIRouter, Cookie, Depends, HTTPException, Request, Response, status
24
from fastapi.responses import RedirectResponse
35
from sqlalchemy.ext.asyncio import AsyncSession
@@ -26,6 +28,8 @@
2628
verify_otp,
2729
)
2830

31+
logger = logging.getLogger(__name__)
32+
2933
router = APIRouter()
3034

3135

@@ -179,6 +183,7 @@ async def google_callback(
179183
try:
180184
user, access_token, refresh_token = await auth_service.google_login(db, code)
181185
except Exception:
186+
logger.exception("Google OAuth login failed")
182187
return error_redirect
183188

184189
success_redirect = RedirectResponse(

0 commit comments

Comments
 (0)