Moved responseType function to Oauth API.