curl --location ${OAUTH_URL} ${CURL_EXTRA_PARAMS}
Please test with echo $CURL_EXTRA_PARAMS in the script to see what the contents of the var are