ExpressJS

Learn how to integrate Wristband with your ExpressJS application.

This quickstart guide will walk you through how to integrate your ExpressJS application with Wristband using the Backend Server Integration Pattern.


Goals

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

  • Integrate your ExpressJS backend with Wristband utilizing Wristband's Express Auth SDK.
  • Implement basic session management with your ExpressJS backend.
  • Connect a React frontend to your Express backend utilizing Wristband's React Client Auth SDK.
  • Implement Cross-Site Request Forgery (CSRF) protection.
  • Handle refreshing expired access tokens.

Prerequisites

  • Node.js (v18.x or later)
  • A package manager such as npm, yarn, or pnpm
  • Express.js (v4.x or later)
  • React (vanilla or NextJS)

Set Up Express

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


What’s Next

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