make getAccessToken use content-type JSON