KainosSoftwareLtd / TechRadar

Community technology management and decision making tool
GNU General Public License v3.0
1 stars 3 forks source link

Authentication middleware #99

Open gpimblott opened 7 years ago

gpimblott commented 7 years ago

Tech Radar was the first Node App I wrote and suffers from lots of my inexperience of node. As I have now written a lot more there are some glaring issues with the code that should be sorted...

Some examples

'isAutenticated' is checked on every route explicitly - this should be handled by a standard middleware (I have examples). The issue here is that it can easily be forgotten when adding a new route also 'debug' should be used properly 'Logger' should be added