I have setup JWT tokens, but I am unable to get the token for the reason in the title. This is the error:
Nest] 34347 - 07/29/2023, 3:34:49 PM ERROR [ExceptionsHandler] secretOrPrivateKey must have a value
Error: secretOrPrivateKey must have a value
at Object.module.exports [as sign] (/Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/node_modules/@nestjs/jwt/node_modules/jsonwebtoken/sign.js:105:20)
at JwtService.sign (/Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/node_modules/@nestjs/jwt/dist/jwt.service.js:35:20)
at AuthService.login (/Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/src/api/auth/auth.service.ts:56:37)
at AuthController.login (/Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/src/api/auth/auth.controller.ts:61:29)
at /Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/node_modules/@nestjs/core/router/router-execution-context.js:38:29
at /Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at /Users/kenflores/Development/Internal Apps/Radiant Data Portal/RadiantDataApi/backend/node_modules/@nestjs/core/router/router-proxy.js:9:17