Here’s the flow, when logging in a new user.
- Server receives access code from user after they log in to Twitch.
- Server accesses /kraken/oauth2/token to trade access code for token
- Server accesses /kraken/ to lookup username and id from token (and verify token is valid, with required scopes)
- Server accesses /kraken/users/ to get public information like display-name and logo.
- Server can finally display welcome to user with their desired Display Name and Logo.
That’s 3 steps the server has to do, and 3 requests to various parts of the Twitch API, to get the public information about the user that just logged in. This is all for the same user each time.