Skip to content
docs

AssertionExpectations

Defined in: webauthn.ts:27

alg: number

Defined in: webauthn.ts:31

COSE alg of the key; only -7 is accepted.


challenge: Uint8Array

Defined in: webauthn.ts:33

The challenge the worker handed the page (raw bytes; the page sent it base64url in clientDataJSON).


optional crypto?: Crypto

Defined in: webauthn.ts:40


origin: string

Defined in: webauthn.ts:35

chrome-extension://<id>


publicKey: string

Defined in: webauthn.ts:29

SPKI public key of the credential, base64 (what getPublicKey() returned at registration).


optional requireUserVerification?: boolean

Defined in: webauthn.ts:39

Require the UV flag (user verification: biometric / PIN) — on for signing.


rpId: string

Defined in: webauthn.ts:37

The RP id the credential was created for (the extension id); its SHA-256 must be the first 32 bytes of authenticatorData.