API reference
Full referenceMiddleware
Client
Configuration
Constants
middleware
ThunderID MiddlewareThe
thunderID() function returns Express middleware that initializes a ThunderIDExpressClient and attaches it to both req.thunderIDAuth and res.thunderIDAuth.Example
const express = require('express');const cookieParser = require('cookie-parser');const {thunderID, handleSignIn, handleSignOut} = require('@thunderid/express');const app = express();app.use(cookieParser());app.use(express.json());app.use(thunderID({baseUrl: 'https://localhost:8090',clientId: '<your-client-id>',clientSecret: '<your-client-secret>',}),);app.get('/login', handleSignIn());app.get('/logout', handleSignOut());
Get started
Provider, session, and a protected route, start to finish.
Connect your application
Getting started / Connect your application / Express
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.