- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
18 lines
641 B
TypeScript
18 lines
641 B
TypeScript
import { Strategy } from 'passport-jwt';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { Repository } from 'typeorm';
|
|
import { User } from '../entities/user.entity';
|
|
import { TokenPayload } from '../auth.service';
|
|
declare const JwtStrategy_base: new (...args: any[]) => Strategy;
|
|
export declare class JwtStrategy extends JwtStrategy_base {
|
|
private readonly configService;
|
|
private readonly userRepository;
|
|
constructor(configService: ConfigService, userRepository: Repository<User>);
|
|
validate(payload: TokenPayload): Promise<{
|
|
sub: string;
|
|
tenantId: string;
|
|
phone: string;
|
|
}>;
|
|
}
|
|
export {};
|