chore: move jwt secrets to .env

This commit is contained in:
canove
2020-11-07 16:57:00 -03:00
parent 3859f996d0
commit 2ff3b07f84
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
export default {
secret: "mysecret",
secret: process.env.JWT_SECRET || "mysecret",
expiresIn: "15m",
refreshSecret: "myanothersecret",
refreshSecret: process.env.JWT_REFRESH_SECRET || "myanothersecret",
refreshExpiresIn: "7d"
};