8000 Allow for `config.authenticator` to be optional · Issue #36 · strangerlabs/webauthn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow for config.authenticator to be optional #36
Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0