Most systems are designed to treat users differently based on their identity. Therefore, users are authenticated via various mechanisms and it's often equally important to test the performance of anonymous and authenticated endpoints. One of the most widespread authentication standards used by today's applications is OAuth.
This is a companion discussion topic for the original entry at https://k6.io/blog/how-to-load-test-oauth-secured-apis-with-k6