@irfanakbari/nova-auth
Version:
Authentication and authorization module for NestJS
12 lines (11 loc) • 498 B
TypeScript
import { JwtService } from '@nestjs/jwt';
import * as authOptions from '../options/auth.options';
import { AuthUser } from '../interfaces/auth.interface';
export declare class AuthService {
private readonly jwtService;
private readonly options;
constructor(jwtService: JwtService, options: authOptions.AuthModuleOptions);
verifyToken(token: string): any | false;
validateSession(payload: AuthUser): Promise<boolean>;
aggregateRoles(rawRoles: string[] | string): string[];
}