Whenever you're ready, walk me through how you'd approach this.
Tell me about how you handle authentication and authorization using JWT tokens in a distributed system. Explain how tokens are issued, validated, and used across services, including key management, expiration, refresh, and revocation. Compare the responsibilities of an API gateway and individual services, and describe common security mistakes.