import WebSDK from ‘@loginid/sdk';
const l = new WebSDK(‘BASE_URL’, ‘CLIENT_ID’);
<!-- Import module from the JS SDK -->
const lid = new LoginID.web.default(
Check whether the device and browser the user is on supports FIDO2.
Sign up a user for FIDO authentication.
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.
Authenticate a previously registered user through FIDO2.
Authenticate a previously registered user using username and password.
Confirm the transaction for which the
tx_id was previously generated.
Leverage an authorized code to add a FIDO2 credential.
The Web SDK previously had the following methods:
The methods have been deprecated, as the type of authenticator being registered is now specified in the register and authenticate methods.