Skip to content

Make VerifiedRegistrationResponse into a stricter type#715

Merged
MasterKale merged 2 commits intomasterfrom
fix/714-better-registration-verification-typing
Aug 22, 2025
Merged

Make VerifiedRegistrationResponse into a stricter type#715
MasterKale merged 2 commits intomasterfrom
fix/714-better-registration-verification-typing

Conversation

@MasterKale
Copy link
Owner

This PR updates @simplewebauthn/server's verifyRegistrationResponse() to more clearly indicate, via improved typing, that VerifiedRegistrationResponse.registrationInfo will only ever be present when VerifiedRegistrationResponse.verified is true. This should empower developers to only have to check that verified is true before digging into registrationInfo.

Fixes #714.

@MasterKale MasterKale added the package:server @simplewebauthn/server label Aug 22, 2025
@MasterKale MasterKale merged commit 5761781 into master Aug 22, 2025
2 checks passed
@MasterKale MasterKale deleted the fix/714-better-registration-verification-typing branch August 22, 2025 23:30
@MasterKale MasterKale added this to the v13.2.0 milestone Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:server @simplewebauthn/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve typing on VerifiedRegistrationResponse

1 participant