muisawe / simple-social-media

0 stars 0 forks source link

Add secrets to a .env #14

Open MMortaga opened 2 years ago

MMortaga commented 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