PureCode Software Interview Question

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