nest-phylax
Version:
Security library for NestJS
13 lines (12 loc) • 404 B
TypeScript
import { SignOptions } from 'jsonwebtoken';
import { ClaimsDto } from '.';
import { User } from '../common';
export declare class JwtUtil {
generateToken({ user, claims, secretKey, signOptions, }: {
user: User;
claims?: ClaimsDto;
signOptions?: SignOptions;
secretKey?: string;
}): string;
verifyJwt(token: string, secretKey: string): ClaimsDto;
}