Custom app: problems signing in with Azure AD
Hi,
I created a React app authenticating with Azure AD following this tutorial: https://learn.microsoft.com/en-us/graph/tutorials/react?tutorial-step=3
Everything worked, but once I upgraded my account to allow adding new users, the authentication stopped working. Eventually, my registered app disappeared and I created a new one following the same steps of the tutorial and updated the App_ID in my code.
I've since then received this error message in the console:
ServerError: invalid_grant: 70000 - [2020-12-26 10:32:40Z]: AADSTS70000: The provided 'code_verifier' input value does not match the original 'code_challenge.'
Trace ID: 8018cbc5-43b8-4d7f-a898-a981dfff9c00
Correlation ID: 5c9cf620-cfe4-4c1b-b9aa-0bdd97500102
Timestamp: 2020-12-26 10:32:40Z - Correlation ID: 5c9cf620-cfe4-4c1b-b9aa-0bdd97500102 - Trace ID: 8018cbc5-43b8-4d7f-a898-a981dfff9c00
This is my code:
Thanks in advance