Skip to main content

API Reference - Web

Constructor#

NPM
import WebSDK from ‘@loginid/sdk';
const l = new WebSDK(BASE_URL,CLIENT_ID);

isFido2Supported#

Check whether the device and browser the user is on supports FIDO2.

registerWithFido2#

Sign up a user for FIDO authentication.

registerWithPassword#

Creates a user account with a password (not recommended). If leveraging this method, users should be migrating to use a FIDO authenticator, then have their password revoked.

authenticateWithFido2#

Authenticate a previously registered user through FIDO2.

authenticateWithPassword#

Authenticate a previously registered user using username and password.

confirmTransaction#

Confirm the transaction for which the tx_id was previously generated.

addFido2CredentialWithCode#

Leverage an authorized code to add a FIDO2 credential.

Deprecated Methods#

The Web SDK previously had the following methods:

  • .register()
  • .login()

The methods have been deprecated, as the type of authenticator being registered is now specified in the register and authenticate methods.