ForgeRock Developer Experience

Step 2. Build the SDK

In the following procedure, you install the required modules, and build the project.

  1. In a terminal window, navigate to the forgerock-javascript-sdk folder you downloaded previously.

  2. To install the required packages, enter the following:

    npm i

    The npm tool downloads the required packages, and places them inside a node_modules folder.

  3. To build the ForgeRock SDK for JavaScript, enter the following:

    npm run build

    The build creates the SDK files in dist/packages/javascript-sdk.

When first learning the SDK or prototyping your app, you can choose to leverage a CDN like unpkg, or Skypack to add the SDK to your projects.

This is not recommended for production apps as it could potentially introduce an attack vector for supply-chain attacks.

Copyright © 2010-2024 ForgeRock, all rights reserved.