seguridad implementada

This commit is contained in:
xXpuma99Xx
2022-04-21 22:50:07 -05:00
parent 4c4b1b1d85
commit d1ed756ddf
3 changed files with 16 additions and 1 deletions
@@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy, ExtractJwt } from 'passport-jwt';
import { JwtPayload } from '../dto/jwt-payload';
@Injectable()
export class JwtStrategyService extends PassportStrategy(Strategy) {
@@ -11,4 +12,6 @@ export class JwtStrategyService extends PassportStrategy(Strategy) {
secretOrKey: configService.get<string>('AUTH_SECRETKEY'),
});
}
validate(payload: JwtPayload) {}
}