NestJS

Learn how to integrate Wristband with your NestJS application.

This quickstart guide will walk you through the process of integrating your NestJS application with Wristband.

Goals

After completing this guide, you will have learned to do the following:

  • 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 Required

This setup requires the @nestjs/platform-express package. NestJS uses Express by default when creating a new project with nest new. If you're using Fastify , this is not currently supported by the Wristband SDK.

Set Up NestJS

If you are starting your app from scratch, you will need to set up an NestJS project by following their installation documentation.



What’s Next

After your NestJS project is set up, you'll need to install the Wristband Auth SDK.