forked from Yara724/api
Added Joi for schema validation, tidied up envs
This commit is contained in:
@@ -49,9 +49,9 @@ import { CaptchaModule } from "src/captcha/captcha.module";
|
||||
{ name: ClaimCase.name, schema: ClaimCaseSchema },
|
||||
]),
|
||||
JwtModule.register({
|
||||
signOptions: { expiresIn: "1h" },
|
||||
signOptions: { expiresIn: "1h" }, // TODO: MAKE IT ENV
|
||||
global: true,
|
||||
secret: `${process.env.SECRET}`,
|
||||
secret: `${process.env.JWT_SECRET}`,
|
||||
}),
|
||||
],
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user