addNewWebAuthnDevice

client.addNewWebAuthnDevice(
    accessToken: string,
    // Optional arguments
    friendlyName: string
)

About this command

When authenticated, the user can add a new FIDO2 device.

  • The WebAuthn feature must be enabled on your ReachFive account.

Examples

client.addNewWebAuthnDevice('eyJ0eXAiOiJKV1QiL...', 'My Android phone')

Parameters

accessToken string

The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old.

friendlyName string

The name of the FIDO2 device. Each device must have a unique name.

Default to the platform of the browser.

Response

Type: Promise[void]