I am developing a React SPA using AWS Amplify. My client requested the implementation of Microsft SSO as they are part of Microsoft House. I have been using OIDC to implement this as it is more of a lightweight protocol. I couldn't find much documentation online and followed the guidelines of friends and no one seems to be able to help me fix this error. When I click my login button it is redirected to the Microsoft log-in page as expected and then however when a user signs in with the correct details I get this. A proof key for code exchange. I think I have set up correctly in AWS, Entra ID and my code. I was wondering if anyone knows how to fix this.