Okta Auth JS is a wrapper around Okta's authentication API. It can be used to get an Okta session cookie or an ID token.
If you want to use the SDK, see the instructions on the Okta Auth SDK developer page.
If you wish to contribute to okta-auth-js, please read the following contributing guidelines
If you want to modify the SDK, use the following instructions.
-
Clone the SDK repo.
[path]$ git clone git@github.com:okta/okta-auth-js.git
-
Navigate to the new
okta-auth-js
folder, and install the Okta node dependencies.[path/okta-auth-js]$ npm install
-
Build the SDK. The output will be under
dist/browser/
. The standalone version isOktaAuthReqwest.min.js
.[path/okta-auth-js]$ npm run build
Command | Description |
---|---|
npm run build |
Build the SDK |
npm test |
Run unit tests |
npm run lint:report |
Run linting tests |