refactor: changed auth module to work with signed cookies

This commit is contained in:
Balu Babu
2023-01-30 06:31:10 +05:30
parent 1bbcd638b8
commit a8d50223aa
7 changed files with 10 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ async function bootstrap() {
origin: true,
});
}
app.use(cookieParser());
app.use(cookieParser(process.env.SIGNED_COOKIE_SECRET));
await app.listen(process.env.PORT || 3170);
}
bootstrap();