For people following the Nest.js Passport.js tutorial that end up having this issue, what fixed it for me is adding the secret as an option again
this.jwtService.sign(payload, { secret: jwtConstants.secret })