Open MMortaga opened 2 years ago
https://github.com/muisawe/simple-social-media/blob/ba00f2c0de47f5eb18f943ca6dd2dbead77655cd/controllers/user.js#L37
Secret keys should not be hardcoded within the code. Add it to a .env file and load it into your code using process.env.SECRET
.env
https://github.com/muisawe/simple-social-media/blob/ba00f2c0de47f5eb18f943ca6dd2dbead77655cd/controllers/user.js#L37
Secret keys should not be hardcoded within the code. Add it to a
.env
file and load it into your code using process.env.SECRET