Okta redirects Errror. The nonce cannot be validated

I have a problem. When Okta redirects to my website I get the following error:

IDX21323: RequireNonce is ‘System.Boolean’. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don’t need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to ‘false’. Note if a ‘nonce’ is found it will be evaluated.

I have added a line of code that I found searching the internet and that was supposed to fix the problem, but it has not solved it.

app.UseKentorOwinCookieSaver()

Any ideas?