NestJS JwtStrategy use configService to pass secret key
问题 I have the JwtStrategy class from docs example (https://docs.nestjs.com/techniques/authentication): @Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { constructor( private readonly authService: AuthService, private readonly configService: ConfigService, ) { super({ jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), secretOrKey: this.configService.getSecretKey, }); } // ... } When I am trying access this before calling super() I get an error. But I still want to