Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extend unavailable status with a reason #38

Merged
merged 7 commits into from
May 16, 2024
Merged

Conversation

Mollemoll
Copy link
Owner

Why?

Users will be interested in why a verification came back as unavailable. For example, if the user has been rate-limited they would benefit from having that information to adapt.

What changed?

  • VerificationStatus::Unavailable -> VerificationStatus::Unavailable(UnavailableReason)
  • New type UnavailableReason which currently can be one of:
    • ServiceUnavailable
    • Timeout
    • Block
    • RateLimit
  • All verifiers have been adapted to this

@Mollemoll Mollemoll self-assigned this May 16, 2024
@Mollemoll Mollemoll merged commit 773a420 into main May 16, 2024
4 checks passed
@Mollemoll Mollemoll deleted the unavailable-reason branch May 16, 2024 07:55
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.

1 participant