Class

WebauthnClient

WebauthnClient()

A class that handles WebAuthn authentication and registration.
Constructor

# new WebauthnClient()

View Source lib/client/WebauthnClient.ts, line 15

Extends

Members

HttpClient

# protected client

Overrides:

View Source lib/client/Client.ts, line 20

Methods

# login(userIDopt) → {Promise.<void>}

Performs a WebAuthn authentication ceremony. When 'userID' is specified, the API provides a list of allowed credentials and the browser is able to present a list of suitable credentials to the user.
Parameters:
Name Type Attributes Description
userID string <optional>
The user's UUID.
See:

View Source lib/client/WebauthnClient.ts, line 197

Promise.<void>

# shouldRegister(user) → {Promise.<boolean>}

Determines whether a credential registration ceremony should be performed. Returns 'true' when a platform authenticator is available and the user's credentials do not intersect with the credentials already known on the current browser/device.
Parameters:
Name Type Description
user User The user object.

View Source lib/client/WebauthnClient.ts, line 222

Promise.<boolean>