Have no idea do you need it 5 years later but maybe other will see it who have such problems. In the method LogOut (or similar which you use) you must just make this: Task.Run(() => HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme)).Wait();