fix: add OTP expiration check in ResetPassword by lakhansamani · Pull Request #494 · 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 OTP expiration check in ResetPassword OTP flow
  • Consistent with VerifyOTP which already checks otp.ExpiresAt

Test plan

  • Verify expired OTPs are rejected in reset password flow
  • Verify valid OTPs still work

Fixes #483

The reset password OTP path only checked if the OTP value matched but
not if it was expired. Added expiry check consistent with VerifyOTP.

Fixes #483

@lakhansamani lakhansamani merged commit af17285 into main

Mar 1, 2026

@lakhansamani lakhansamani deleted the fix/reset-password-otp-expiry branch

March 1, 2026 07:06

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.

ResetPassword OTP flow doesn't check OTP expiration

1 participant

@lakhansamani