When the token is granted (using Accounts Dashboard | HubSpot) it does not send back the token_type which seem to be a REQUIRED parameter as per OAuth RFC. Because of this I cannot use standard implementations of TokenClients.
Good day, don’t think that provided answer can be accepted, token_type is used to find out how to utilize the access token (it is not describing how to use refresh token, because refresh token is not used for authorization calls). I don’t need additional call to distinguish between access and refresh tokens, because they are provided in different fields of response.
And according to spec (link was provided in original question) this field is required, if it is missing, your OAuth2 implementation can’t be use with spec-conformant OAuth2 clients.
I agree with @betalb . The provided answer is not a solution to the initial problem. Standard OAuth libraries, which honor the specification, do not work with Hubspot OAuth implementation right now.