netcore with azure ad using oidc and the browser back button after sign in causing exceptions

So I have a newly created netcore application linked to my azure active directory account with middleware setup as follows: app.UseCookieAuthentication(new CookieAuthenticationOptions() ...