ended3월 25일· 1 sources
Session Cookie Auth, Forgot-Password Timeouts, and Killing Flaky E2E Tests
세션 쿠키 인증, 비밀번호 재설정 타임아웃, 그리고 불안정한 E2E 테스트 해결기
Why it matters
Hustle, a youth soccer stats platform on Next.js 15 and Firebase, suffered three auth-related bugs: premature logouts caused by storing raw Firebase ID tokens (1-hour expiry) in 14-day cookies, 504 timeouts on the forgot-password endpoint due to dynamic imports on cold starts, and flaky Playwright E2E tests. Fixes included switching to Firebase's createSessionCookie() API, replacing dynamic imports with static ones, and moving password reset to the client-side Firebase SDK.
1
Sources
+0
24h
—
Growth
180d
Active
Firebasesession cookiePlaywright E2ENext.jscold start