Getting Started
In this short guide, you will learn how to integrate the Keyless Web SDK in your web application, and enroll and authenticate users through the Keyless platform.
Before jumping into your code editor, make sure that you're familiar with the various components of the authentication system, and common biometric authentication flows.
Prerequisites
Make sure you have all the required keys.
CLOUDSMITH_TOKENto download the Web SDK from cloudsmith repositoryCUSTOMER_NAMEto define the customerKEYLESS_AUTHENTICATION_SERVICE_URLto estabilish a connectionIMAGE_ENCRYPTION_PUBLIC_KEYfor the image encryption to workIMAGE_ENCRYPTION_KEY_IDfor the image encryption to work
Installation
First of all you must authenticate with our cloudsmith repository, in the root of your project folder create a file called .npmrc and write this line inside:
@keyless:registry=https://npm.cloudsmith.io/keyless/partners/Then with the token that was given to you by Keyless, launch this command on your terminal:
npm config set //npm.cloudsmith.io/keyless/partners/:_authToken=CLOUDSMITH_TOKENNow you’re all set to install our packages. Meaning that you can now successfully install @keyless/sdk-web by launching the following command on your terminal:
npm install @keyless/[email protected]Of course you’re free to use a package manager of your choice, but here in Keyless we use pnpm.
Installing the @keyless/sdk-web-components package is the same and can be done with:
npm install @keyless/[email protected] @keyless/[email protected]Last updated
Was this helpful?