Files
TehRiehlDeal f0def62eef Add Keep-Me-Signed-In, movie release dates, and lint cleanup
Features:
- "Keep me signed in" — login/register accept a rememberMe flag and the
  backend signs JWTs with JWT_LONG_EXPIRATION (30d) when set, otherwise
  JWT_EXPIRATION (1d). DTOs, controller, and AuthService updated.
- Movie release dates — DailyChallenge, GameSession, and VersusMatch get
  nullable movieAReleaseDate / movieBReleaseDate columns (forward-only
  migration). Daily-challenges, games, versus-match, and versus-async
  services now persist and return release_date from TMDB. Versus waiting
  lobby payloads strip the new fields alongside the titles to avoid
  leaking the puzzle to non-joined players.

Lint cleanup (132 → 0 errors):
- Shared utilities: src/common/utils/error.util.ts (getErrorMessage) and
  src/auth/types/jwt-payload.ts (JwtPayload).
- Replaced catch(error: any){error.message} with getErrorMessage(error)
  across services and gateways.
- jwtService.verify<JwtPayload>(token) in versus / game-night / chat /
  notifications gateways.
- Typed Prisma JSON columns where they're read (game-night, leaderboards,
  admin score blobs).
- Removed redundant async on sync handlers, wrapped setTimeout/setInterval
  Promise callbacks with void IIFEs to satisfy no-misused-promises.
- eslint.config.mjs: allow `_`-prefixed unused vars (industry standard).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 16:40:00 -07:00

33 lines
631 B
Bash

# Database
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/movieloop?schema=public"
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redis_secret
# RabbitMQ
RABBITMQ_URL=amqp://rabbit:rabbit_secret@localhost:5672
# JWT
JWT_SECRET=change-me-to-a-random-secret
JWT_EXPIRATION=1d
JWT_LONG_EXPIRATION=30d
# TMDB
TMDB_API_KEY=your-tmdb-api-key-here
TMDB_BASE_URL=https://api.themoviedb.org/3
# Prisma Field Encryption
PRISMA_FIELD_ENCRYPTION_KEY=change-me-to-a-32-byte-hex-key
# CORS
CORS_ORIGIN=http://localhost:5173
# Admin
ADMIN_SECRET=change-me-to-a-random-secret
# App
PORT=3000
NODE_ENV=development