JWT Utils Function
JWT Utils Function for JSON Web Token authentication with access & refresh token support for Express
Installation Guide
Install the component using the servercn CLI:
npx servercn-cli@latest add jwt-utils Prerequisites
Ensure the following environment variables are defined before running the application:
JWT_ACCESS_SECRET: Used to sign and verify access tokens
JWT_REFRESH_SECRET: Used to sign and verify refresh tokens - These secrets must be different and kept private