Authenticated API calls have a higher rate limit, so if the user is already logged in, we should use that authentication information to get the higher rate limit.
In the code, by chaining the startPolling() function as a promise, we ensure that the authenticated HTTP client will be used for all operations.
Authenticated API calls have a higher rate limit, so if the user is already logged in, we should use that authentication information to get the higher rate limit.
In the code, by chaining the
startPolling()
function as a promise, we ensure that the authenticated HTTP client will be used for all operations.