PureCode Software interview question

How do you implement authentication and authorization in a Node.js application?