PureCode Software interview question

Explain how you would implement user authentication and authorization in a full stack application.