Installation
Setup and usage
1
Register the module
Import
KeyPortModule and call forRoot inside the imports array of your root AppModule. Supply your API key directly or point to a config file:2
Protect a route
Add the Use the
@RequireLicense() decorator to any controller method to enforce license validation on that endpoint:@License() parameter decorator to access the validated license payload inside the handler.@RequireLicense() acts as a guard. Requests without a valid license key are rejected before your handler runs.