JWT Utils Function
JWT Utils Function provides a production-ready authentication utility based on access tokens and refresh tokens for Express-based applications.
Installation Guide
Install the component using the servercn CLI:
npx servercn-cli add jwt-utilsPrerequisites
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