Hello Lydia Edward,
Thank you for reaching out to Microsoft!!
For the error - authorization code missing from server response, please find the below work arounds which might help resolve the issue:
Ensure that the redirect URI used in your application matches the one registered in the Azure Portal for your app registration. Mismatched URIs can cause this error.
Double check the authorization endpoint URL to ensure it is correct and properly configured.
Add logging to capture the full server response and inspect it for any missing parameters.
Ensure the code flow is correctly implemented and that the necessary parameters are being passed correctly.
Please find the relevant documentation about this error code below:
Link: Error handling while working with MSAL.js
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.