Skip to content

Installation ​

Versioning ​

The Okta Client JavaScript SDKs adhere to semantic versioning. All SDKs in the ecosystem are synchronized to share common major and minor version numbers. As a result, some packages may be released without any changes, simply to maintain version alignment. The patch version, however, will reflect updates specific to each individual package.

Package Installation ​

IMPORTANT

Please review the Project Structure before adding to your project.

Install auth-foundation ​

sh
yarn add @okta/auth-foundation
sh
npm install @okta/auth-foundation
sh
pnpm add @okta/auth-foundation

Install a Token Acquisition library ​

sh
yarn add @okta/oauth2-flows
sh
npm install @okta/oauth2-flows
sh
pnpm add @okta/oauth2-flows

Install a Platform library ​

sh
yarn add @okta/spa-platform
sh
npm install @okta/spa-platform
sh
pnpm add @okta/spa-platform

IMPORTANT

No CDN distributions are available at this time

Polyfills ​

These libraries are written for modern JavaScript environments, targeting MDN's Baseline 2022 and Node.js 20 feature sets. Most notably, they utilize the following APIs:

Polyfills may be required to support legacy browsers or other runtime environments.

Legacy browsers may also need to polyfill the following: