Skip to content

Commit 0de7c9d

Browse files
authored
Fix typos in passkey-registration (GoogleChrome#9174)
1 parent 9a188d1 commit 0de7c9d

File tree

1 file changed

+5
-5
lines changed
  • src/site/content/en/identity/passkey-registration

1 file changed

+5
-5
lines changed

src/site/content/en/identity/passkey-registration/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Before prompting the user to create a new passkey, check if:
4545
// Availability of `window.PublicKeyCredential` means WebAuthn is usable.
4646
if (window.PublicKeyCredential &&
4747
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable &&
48-
PublicKeyCredential.​​isConditionalMediationAvailable) {
48+
PublicKeyCredential.isConditionalMediationAvailable) {
4949
// Check if user verifying platform authenticator is available.
5050
Promise.all([
5151
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable(),
52-
PublicKeyCredential.​​isConditionalMediationAvailable(),
52+
PublicKeyCredential.isConditionalMediationAvailable(),
5353
]).then(results => {
5454
if (results.every(r => r === true)) {
5555
// Call WebAuthn creation
@@ -78,8 +78,8 @@ const publicKeyCredentialCreationOptions = {
7878
pubKeyCredParams: [{alg: -7, type: "public-key"},{alg: -257, type: "public-key"}],
7979
excludeCredentials: [{
8080
id: *****,
81-
type: 'public-key',
82-
transports: ['internal'],
81+
type: "public-key",
82+
transports: ["internal"],
8383
}],
8484
authenticatorSelection: {
8585
authenticatorAttachment: "platform",
@@ -132,7 +132,7 @@ The key parameters here are:
132132
embedded into the platform device and the user will not be prompted to
133133
insert an external authenticator such as a USB security key.
134134
- [`authenticatorSelection.requireResidentKey`](https://w3c.github.io/webauthn/#dom-authenticatorselectioncriteria-residentkey):
135-
Set it to `"true"`. Requiring a discoverable credential (resident key)
135+
Set it to `true`. Requiring a discoverable credential (resident key)
136136
enables better sign-in experiences.
137137
- [`excludeCredentials`](https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-excludecredentials):
138138
Prevent registering the same authenticator by providing a list of already

0 commit comments

Comments
 (0)