Issue with Email Verification Status in Firebase 2FA Implementation
I am implementing two-factor authentication (2FA) with email in Firebase using Next.js. Initially, when a user signs in with a new email, the emailVerified field is false, which correctly triggers the authentication process. However, on subsequent logins with the same email, Firebase sets the emailVerified field to true, indicating that the email has been verified.