Logs in with the client-credentials grant and caches the token until 30 seconds before it expires. Calls that need a token while one is being requested wait for that same request.
The scopes the token endpoint said the cached token carries (space-separated), if it said.
Optional
Drops the cached token if it is the refused one; keeps a newer token or a login in flight.
Logs in with the client-credentials grant and caches the token until 30 seconds before it expires. Calls that need a token while one is being requested wait for that same request.