WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

2 participants