PureCode Software interview question

Describe how you would implement authentication and authorization in a Node.js application.