@turnkey/webauthn-stamper
package is used for stamping requests made to Turnkey’s API with WebAuthn credentials, but specifically for use with passkeys.
For more information on passkeys and WebAuthn refer to this section.
@turnkey/webauthn-stamper
client.
WebauthnStamper
class is a utility designed to facilitate the process of creating a digital stamp using WebAuthn credentials. This stamp is essential for authenticating requests made to a web server or API that utilizes WebAuthn for secure, passwordless authentication. You can initialize a new WebauthnStamper
using the WebauthnStamper constructor:
constructor(config: TWebauthnStamperConfig): WebauthnStamper
https://www.example.com
, the RPID is typically example.com
. If you’re testing on localhost, the RPID should be localhost
.required
, preferred
, or discouraged
. Defaults to preferred
if not provided.TWebauthnStamperConfig
UserVerificationRequirement
PublicKeyCredentialDescriptor
stamp: (input: string) => Promise<TStamp>
TStamp