NestJS
Set up Wristband in your NestJS project.
This guide shows you how to add Wristband to NestJS.
Goals
By the end of this guide, you will be able to:
- Integrate your NestJS backend with Wristband, utilizing Wristband's NestJS Auth SDK.
- Implement session management with your NestJS backend.
- Connect a React frontend to your NestJS backend utilizing Wristband's React Client Auth SDK.
- Protect your application's pages and APIs by verifying that the user has an authenticated session.
Prerequisites
- Node.js (v20.x or later)
- NestJS (v10.x or later)
- A package manager such as npm, yarn, or pnpm
- React (vanilla or NextJS)
Express Platform RequiredThis configuration relies on
@nestjs/platform-express. Since NestJS defaults to Express, you are covered. However, the Wristband SDK does not currently support Fastify.
Set Up NestJS
If you are starting from scratch, create a new project by following the NestJS installation guide.
Updated 5 days ago
What’s Next
After your NestJS project is set up, you'll need to install the Wristband Auth SDK.
Did this page help you?