Hi @Bhavika Nimbark ,
This exception is usually thrown when an OpenIdConnect middleware encounters an invalid nonce or a missing nonce cookie.
Sometimes, it could be just that SSL is not enabled in Visual Studio or in Windows VM. Enabling SSL to enforce https should resolve the problem.
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.