Skip to content

Allow for config.authenticator to be optional #36

@magom001

Description

@magom001

Currently AttestationChallengeBuilder.setAuthenticator throws an error if config.authenticator is not cross-platform or platform

This field is not mandatory. If not provided a browser prompt is presented (@see https://webauthn.io/).

I suggest to remove

const values = Object.values(Dictionaries.AuthenticatorAttachment)
if (!values.includes(authenticatorAttachment)) {
throw new Error(`Invalid AuthenticatorAttachment value. Must be one of "${values.join('", "')}".`)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions