UNPKG

@nestjs/jwt

Version:

Sign and verify JSON Web Tokens in NestJS with an injectable JwtService, built on jsonwebtoken.

5 lines (4 loc) • 175 B
import { JWT_MODULE_OPTIONS } from './jwt.constants.js'; export function createJwtProvider(options) { return [{ provide: JWT_MODULE_OPTIONS, useValue: options || {} }]; }