oauth2#fetchAccessToken does not handle errors for HTTP status code != 2xx.
It should reject when getting a status code != 200, like what is done in nuxeo#http.
Check also other code using directly fetch to fix it if needed.
oauth2#fetchAccessToken does not handle errors for HTTP status code != 2xx.
It should reject when getting a status code != 200, like what is done in nuxeo#http.
Check also other code using directly fetch to fix it if needed.