You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-credentials.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -281,9 +281,9 @@ Installs the virtual WebAuthn authenticator into the context, overriding
281
281
`navigator.credentials.create()` and `navigator.credentials.get()` in all current
282
282
and future pages. Call this before the page first touches `navigator.credentials`.
283
283
284
-
Required: until `install()` is called, no interception is in place and the page sees
284
+
Required: until [`method: Credentials.install`] is called, no interception is in place and the page sees
285
285
the platform's native (or absent) WebAuthn behaviour. Seeding credentials with
286
-
[`method: Credentials.create`] without `install()` populates the authenticator, but the
286
+
[`method: Credentials.create`] without installing populates the authenticator, but the
287
287
page will never see those credentials.
288
288
289
289
## async method: Credentials.create
@@ -298,13 +298,12 @@ page will never see those credentials.
298
298
299
299
Seeds a virtual WebAuthn credential and returns it.
300
300
301
-
With only `rpId`, generates a fresh **ECDSA P-256** keypair, credential id and user handle. The
301
+
With only [`param: Credentials.create.rpId`], generates a fresh **ECDSA P-256** keypair, credential id and user handle. The
302
302
seeded credential is discoverable (resident), so the page can resolve it from both
303
-
username-then-passkey and usernameless passkey flows. The returned object carries the `privateKey` and `publicKey`, so
304
-
it can be persisted to disk and re-seeded in a later test.
303
+
username-then-passkey and usernameless passkey flows. The returned object carries the private and public keys, so it can be persisted to disk and re-seeded in a later test.
305
304
306
-
To **import a known credential**, supply all four of `id`, `userHandle`, `privateKey` and
307
-
`publicKey` together.
305
+
To **import a known credential**, supply all four of [`option: Credentials.create.id`], [`option: Credentials.create.userHandle`], [`option: Credentials.create.privateKey`] and
0 commit comments