Skip to main content

Node.js

Official

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.

Clients
Config
Utilities
exportThunderIDNodeClient

ThunderIDNodeClient is an abstract base class that extends ThunderIDJavaScriptClient with Node.js-specific configuration. Use this class as the foundation when building a new framework-specific authentication client for a Node.js runtime. Examples include adapters for other Node.js server frameworks.

Example
import { ThunderIDNodeClient, ThunderIDNodeConfig } from '@thunderid/node'

interface MyFrameworkConfig extends ThunderIDNodeConfig {
  customOption?: string
}

class MyFrameworkClient extends ThunderIDNodeClient<MyFrameworkConfig> {
  // Add framework-specific methods or override inherited ones here
}

export default MyFrameworkClient

Get started

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

Connect your application

Getting started / Connect your application / Node.js

Open in docs

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

5 min read

Handling Authentication

Set up sign-in and sign-out flows in a Node.js application using the ThunderID Node.js SDK

5 min read

Protecting Routes

Restrict access to routes based on authentication state using the ThunderID Node.js SDK

6 min read
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.