Skip to main content

Node.js

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Server-side SDK for verifying tokens and securing Node.js services.

API reference​

Every export is fully typed. The signatures and props below come from the package's own reference documentation, so what is listed here is what the installed version ships.

See the full API reference for every export, its signature and an example.

Clients​

  • ThunderIDNodeClient (export): ThunderIDNodeClient is an abstract base class that extends ThunderIDJavaScriptClient with Node.js-specific configuration.

Config​

  • ThunderIDNodeConfig (export): ThunderIDNodeConfig is the configuration type for the Choreo Identity & Access Management Node.js SDK.

Utilities​

  • CookieConfig (export): CookieConfig is a constants class that exposes the default values used for session cookie configuration in the Choreo Identity & Access Management Node.js SDK.

  • CookieOptions (export): CookieOptions defines the shape of cookie configuration options used in the Choreo Identity & Access Management Node.js SDK.

  • generateSessionId() (export): generateSessionId generates a unique session identifier string.

  • getSessionCookieOptions() (export): getSessionCookieOptions merges the provided partial CookieOptions with the default values from CookieConfig.

Get started​

Provider, session, and a protected route, start to finish.

Connect your application: Getting started / Connect your application / Node.js

The quickstart is maintained alongside the rest of the getting-started guides so it stays in step with the platform. This page covers the package itself.

Guides​

Task-focused walkthroughs maintained alongside the SDK.

  • Accessing Protected APIs: Use the access token to call downstream APIs from a Node.js server-side application

  • Handling Authentication: Set up sign-in and sign-out flows in a Node.js application using the Choreo Identity & Access Management Node.js SDK

  • Protecting Routes: Restrict access to routes based on authentication state using the Choreo Identity & Access Management Node.js SDK

Was this page helpful?