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
yarn add @okta/auth-foundationnpm install @okta/auth-foundationpnpm add @okta/auth-foundationInstall a Token Acquisition library
yarn add @okta/oauth2-flowsnpm install @okta/oauth2-flowspnpm add @okta/oauth2-flowsInstall a Platform library
yarn add @okta/spa-platformnpm install @okta/spa-platformpnpm add @okta/spa-platformIMPORTANT
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: