identity-idp
identity-idp copied to clipboard
LG-13220: Fix aggregated new device sign-in for expired session
🎫 Ticket
🛠 Summary of changes
Fixes an issue where new-device email notification is not sent as expected when fully authenticating after letting a first sign-in attempt expire.
This feature is only enabled in local development, so this is not a bug affecting production.
Draft: Currently, this only implements the failing regression spec, not the actual fix.
📜 Testing Plan
- In a private browser, go to http://localhost:3000
- Sign in successfully with email and password (do not complete MFA)
- Wait until your sign-in session times out (~15minutes, you'll see an alert "We cleared your information due to inactivity" and be returned to sign-in
- Sign in again and complete MFA
Before: The second email is not sent after completing MFA. After: Two emails are sent: One for the initial timeout of the notification window listing the email and password submission, and a second after completing MFA.