fix: add revoked user check to VerifyEmail and VerifyOTP by lakhansamani · Pull Request #491 · authorizerdev/authorizer

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@lakhansamani

Copy link Copy Markdown

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

VerifyEmail and VerifyOTP bypass revoked user access check

1 participant

@lakhansamani