UNPKG

@nxtoai/jwtette

Version:

JWT authentication package for NxtoAI microservices

15 lines (12 loc) 384 B
import { Injectable } from '@nestjs/common'; import { JwtService as NestJwtService } from '@nestjs/jwt'; @Injectable() export class JwtService { constructor(private readonly jwtService: NestJwtService) {} sign(payload: any): string { return this.jwtService.sign(payload); } verify(token: string): any { return this.jwtService.verify(token); } }