WebAuthnP256.getAuthenticatorData
Gets the authenticator data which contains information about the processing of an authenticator request (ie. from WebAuthnP256.sign
).
Imports
Named
import { WebAuthnP256 } from 'ox'
Examples
import { WebAuthnP256 } from 'ox'
const authenticatorData = WebAuthnP256.getAuthenticatorData({
rpId: 'example.com',
signCount: 420,
})
"0xa379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce194705000001a4"
Definition
function getAuthenticatorData(
options?: getAuthenticatorData.Options,
): Hex.Hex
Source: src/core/WebAuthnP256.ts
Parameters
options
- Type:
getAuthenticatorData.Options
- Optional
Options to construct the authenticator data.
options.flag
- Type:
number
- Optional
A bitfield that indicates various attributes that were asserted by the authenticator. Read more
options.rpId
- Type:
string
- Optional
The Relying Party ID that the credential is scoped to.
options.signCount
- Type:
number
- Optional
A signature counter, if supported by the authenticator (set to 0 otherwise).
Return Type
The authenticator data.
Hex.Hex