fix(auth): extend login verification code TTL to 30 minutes - #70756
Conversation
Bump CODE_TTL_SECONDS from 10 to 30 minutes and derive the email's expiration copy from the same constant so the two can't drift.
|
|
Note 🤖 stamphog reviewed Gates denied this auth-flow change, and Greptile flagged an unresolved P1 security issue (session TTL mismatch can reject valid codes / extend stale lockout windows) that hasn't been addressed.
Gate mechanics and policy version
|
|
P2 is real but pre-existing — the Concrete fix for P2: replace the This pins the counter's expiry to the remaining code lifetime rather than resetting it on every guess, so even if |
🤖 CI report |
Generated-By: PostHog Code Task-Id: 1ff694e9-e69e-4c23-807c-125c7b2de4e1
Problem
The 6-digit login verification code expired after 10 minutes, which was too tight for users switching to their email and back.
Changes
How did you test this code?
Automatic notifications