On this page
Add user authentication to your JavaScript app
Get started with JavaScript + Okta
These resources walk you through adding user authentication to your JavaScript app in minutes.
Note: This set of resources is relevant to front-end JavaScript. For back-end JavaScript, see Node.js.
Integrate with Okta using redirect authentication and the Sign-In Widget
This SDK helps you integrate with Okta by redirecting to the Okta Sign-In Widget using OpenID Connect (OIDC) client libraries.
Okta's OpenID Connect JS library (opens new window)
Integrate with Okta using embedded Sign-In Widget and SDKs
These SDKs help you integrate with Okta to build your own fully-branded authentication by embedding an Okta Sign-In Widget and/or SDK.
- Okta JavaScript Auth SDK (opens new window) is a library wrapper for the Okta Authentication API. Use it when you need complete control of your sign-in experience. See the Okta Identity Engine README (opens new window) for Identity Engine-specific instructions.
- okta-auth-js on npm (opens new window)
- Use the Okta embedded Sign-In Widget (opens new window) for a pre-built, best practice, customizable experience.
Recommended Guides
Embedded SDK and Sign-In Widget sign-in guide:
Other guides:
- Sign users in to your SPA using the redirect model and AuthJS
- Implementing the Implicit flow
- Implementing the PKCE flow
- Add an identity provider (includes social login)
- Validate access tokens
- Validate ID tokens
Note: Browse our recent JavaScript Developer Blog posts (opens new window) for further useful topics.