Skip to content

fix: check verificationRequest.Identifier for login method in VerifyEmail#495

Merged
lakhansamani merged 4 commits intomainfrom
fix/verify-email-login-method
Mar 1, 2026
Merged

fix: check verificationRequest.Identifier for login method in VerifyEmail#495
lakhansamani merged 4 commits intomainfrom
fix/verify-email-login-method

Conversation

@lakhansamani
Copy link
Contributor

Summary

  • Fixed dead-code condition where loginMethod was compared against VerificationTypeMagicLinkLogin immediately after being set to AuthRecipeMethodBasicAuth
  • Now checks verificationRequest.Identifier to correctly identify magic link logins

Test plan

  • Verify magic link login flow uses correct login method
  • Verify basic auth email verification still works

Fixes #484

…mail

The loginMethod variable was compared to VerificationTypeMagicLinkLogin
right after being set to AuthRecipeMethodBasicAuth, making the condition
always false. Now checks verificationRequest.Identifier instead.

Fixes #484
@lakhansamani lakhansamani merged commit b759bd7 into main Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VerifyEmail has dead-code loginMethod comparison

1 participant