-
Notifications
You must be signed in to change notification settings - Fork 183
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
Align RP ID string types #2074
Align RP ID string types #2074
Conversation
`rp.id` in `PublicKeyCredentialCreationOptions` and `rpId` in `PublicKeyCredentialRequestOptions` represent the same thing, but with different types. The WG agreed on the 2024-05-15 call that both should be `USVString`. Strictly speaking this is a breaking change (changing a type bound in input (contravariant) position to be more restrictive), but in practice this shouldn't be able to break any applications since then those credentials wouldn't have worked in `get()` anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
From the WG @ 7/10: I don't have an objection to making this change, but it will mean that |
Alternative strategy: define a |
2024-07-10 WG call: We'll revert the change to |
…edentialRpEntityJSON
rp.id
inPublicKeyCredentialCreationOptions
andrpId
inPublicKeyCredentialRequestOptions
represent the same thing, but with different types. The WG agreed on the 2024-05-15 call that both should beUSVString
. Strictly speaking this is a breaking change (changing a type bound in input (contravariant) position to be more restrictive), but in practice this shouldn't be able to break any applications since then those credentials wouldn't have worked inget()
anyway.Fixes #2066.
Preview | Diff