JWT Authentication
Add token-based authentication with jsonwebtoken
.
lts add jwt
Add JWT Secure routes with JWTs.
The lts add
(or a
) command supercharges your LightTs project by integrating features like JWT authentication, validation, CORS, or database support. Each feature generates clean, customizable Node.js code using standard libraries for maximum flexibility.
lts add <feature>lts a <feature>
jwt
, validation
, cors
, or database
.lts add <feature>
to generate the necessary files.JWT Authentication
Add token-based authentication with jsonwebtoken
.
lts add jwt
Validation
Enable schema-based validation with joi
.
lts add validation
CORS
Database
Integrate TypeORM for PostgreSQL, MySQL, MariaDB, or MongoDB.
lts add database