feat: Google OAuth ile giris

- User modeline googleId (unique) eklendi
- google start/callback API route'lari (state korumali, find-or-create)
- Login/register sayfalarina Google butonu
- docker-compose'a GOOGLE_CLIENT_ID/SECRET env gecisi
- tsconfig.tsbuildinfo gitignore'a eklendi
This commit is contained in:
2026-08-02 16:50:34 +03:00
parent 17319a1555
commit bf2fc272f2
12 changed files with 272 additions and 2 deletions
+2
View File
@@ -27,6 +27,8 @@ services:
AUTH_COOKIE_NAME: wh_session
AUTH_SESSION_DAYS: 30
ADMIN_EMAILS: admin@winninghunter.local
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
ports:
- "${PORT:-3000}:3000"
command: sh -c "npx prisma db push && npm run start"