Project

General

Profile

Actions

Feature #1180

open
지팡 지팡

[지나·Google OAuth] 최초 가입과 FastAPI JWT 교환·DB 연결 안정화

Feature #1180: [지나·Google OAuth] 최초 가입과 FastAPI JWT 교환·DB 연결 안정화

Added by 지나 팡 21 days ago. Updated 21 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
10/27/2026
Due date:
10/27/2026 (21 days late)
% Done:

100%

Estimated time:

Description

구현: Supabase Google 세션의 access token을 FastAPI가 검증하고, 최초 로그인 사용자는 auth.users UUID와 동일한 app_users·profiles를 만든 뒤 서비스 JWT를 발급하도록 구현했습니다. 기존 계정은 중복 생성하지 않고 재사용합니다.

안정화: transaction-mode pooler에서 연결을 즉시 반환하도록 NullPool을 적용하고 asyncpg statement cache를 꺼 PgBouncer prepared statement 충돌과 연결 한도 문제를 줄였습니다.

검증: Google 계정 선택 → 콜백 → 홈 로그인 완료, 주요 콘텐츠 정상 표시, catalog API 10회 연속 응답을 확인했습니다.

근거: https://github.com/KANT-2/group_4_vegetable_project/pull/34

결과: Google 계정을 서비스 공통 UUID·JWT 체계에 안전하게 연결.

지팡 Updated by 지나 팡 21 days ago Actions #1

  • Status changed from New to Resolved
Actions

Also available in: PDF Atom