Skip to content

fix: add revoked user check to VerifyEmail and VerifyOTP#491

Merged
lakhansamani merged 3 commits intomainfrom
fix/verify-email-otp-revoked-check
Mar 1, 2026
Merged

fix: add revoked user check to VerifyEmail and VerifyOTP#491
lakhansamani merged 3 commits intomainfrom
fix/verify-email-otp-revoked-check

Conversation

@lakhansamani
Copy link
Contributor

Summary

  • Added RevokedTimestamp check in VerifyEmail and VerifyOTP after fetching user
  • Prevents revoked users from obtaining valid tokens through email/OTP verification

Test plan

  • Verify revoked users cannot verify email or OTP
  • Verify non-revoked users can still verify normally

Fixes #480

Both VerifyEmail and VerifyOTP were missing the RevokedTimestamp check
that Login correctly implements. A revoked user could verify email/OTP
and obtain valid tokens.

Fixes #480
@lakhansamani lakhansamani merged commit 085a391 into main Mar 1, 2026
@lakhansamani lakhansamani deleted the fix/verify-email-otp-revoked-check branch March 1, 2026 07:03
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 and VerifyOTP bypass revoked user access check

1 participant