Skip to content

Virto Signer API


Virto Signer API / authenticators/webauthn/src / InMemoryCredentialsHandler

Class: InMemoryCredentialsHandler

Defined in: authenticators/webauthn/src/in-memory-credentials-handler.ts:3

Implements

Constructors

Constructor

new InMemoryCredentialsHandler(): InMemoryCredentialsHandler

Returns

InMemoryCredentialsHandler

Methods

onCreatedCredentials()

onCreatedCredentials(userId, credential): Promise<void>

Defined in: authenticators/webauthn/src/in-memory-credentials-handler.ts:30

Parameters

userId

string

credential

PublicKeyCredential

Returns

Promise<void>

Implementation of

CredentialsHandler.onCreatedCredentials


publicKeyCreateOptions()

publicKeyCreateOptions(challenge, user): Promise<PublicKeyCredentialCreationOptions>

Defined in: authenticators/webauthn/src/in-memory-credentials-handler.ts:39

Parameters

challenge

Uint8Array

user

PublicKeyCredentialUserEntity

Returns

Promise<PublicKeyCredentialCreationOptions>

Implementation of

CredentialsHandler.publicKeyCreateOptions


publicKeyRequestOptions()

publicKeyRequestOptions(userId, challenge): Promise<PublicKeyCredentialRequestOptions | undefined>

Defined in: authenticators/webauthn/src/in-memory-credentials-handler.ts:53

Parameters

userId

string

challenge

Uint8Array

Returns

Promise<PublicKeyCredentialRequestOptions | undefined>

Implementation of

CredentialsHandler.publicKeyRequestOptions


credentialIds()

static credentialIds(userId): ArrayBufferLike[]

Defined in: authenticators/webauthn/src/in-memory-credentials-handler.ts:22

Parameters

userId

string

Returns

ArrayBufferLike[]