Frage im Vorstellungsgespräch bei Walmart Global Tech

How would you implement authentication and authorization in an API?