updating exchange_code with grant_type.