PureCode Software Interview Question

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