I'm getting this error any solutions for this {'s': 'error', 'code': -442, 'message': 'Please provide valid grant_type'}

I’m getting this error any solutions for this
{‘s’: ‘error’, ‘code’: -442, ‘message’: ‘Please provide valid grant_type’}

you need to have this in the code and pass this,
grant_type = “authorization_code”