fix variable passing for jwt strategy

This commit is contained in:
Michael Schramm 2020-06-01 01:59:58 +02:00
parent 9f04ebe8dc
commit a8ac338979

View File

@ -14,7 +14,7 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
super({
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
ignoreExpiration: false,
secretOrKey: configService.get<string>('AUTH_SECRET'),
secretOrKey: configService.get<string>('SECRET_KEY'),
});
}