πJson Web Token
The module provides a service that allows you to create and verify JSON Web Tokens.
Imports
import { JsonWebTokenService } from 'niro-health';import { JsonWebTokenModule } from 'niro-health';import type { IJsonWebTokenService } from 'niro-health';Environment Variables
name
description
JWT_SECRET=cLoM/xpKjQpuL825AZexwyitebaOg94Gr4SzBiBNN6M=Method of Use
import { Module } from '@nestjs/common';
import {
JsonWebTokenService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IJsonWebTokenService',
useClass: JsonWebTokenService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Methods
Method
Scope
Description
Last updated