Sollicitatievraag bij PureCode Software

How would you implement user authentication middleware in a Node.js application?