diff --git a/aspnetcore/security/authentication/cookie.md b/aspnetcore/security/authentication/cookie.md index 5772966185..c1b718a3b2 100644 --- a/aspnetcore/security/authentication/cookie.md +++ b/aspnetcore/security/authentication/cookie.md @@ -173,7 +173,7 @@ This would then be wired up during cookie service registration in the `Configure ```csharp services.AddAuthentication("MyCookieAuthenticationScheme") - .AddCookie(options => + .AddCookie("MyCookieAuthenticationScheme", options => { options.Events = new CookieAuthenticationEvents {