Hi @CMS Staging
Thanks for reaching out.
As per error it seems you are trying to get access token using Authorization Code Flow. Authorization code flow has 2 parts:
Request an authorization code by passing the required parameters.
Second, to request for access token by passing valid authorized code along with other parameters.
You are getting the error AADSTS70000: The provided value for the 'code' parameter is not valid. The code has expired because Authorization codes are short lived, typically expiring after about 10 minutes.
If you want to get the access token, then you need to provide valid authorize code. In this scenario it would require requesting authorize code again.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.