diff --git a/aspnetcore/security/authentication/cookie.md b/aspnetcore/security/authentication/cookie.md index d964c0bfe0..5772966185 100644 --- a/aspnetcore/security/authentication/cookie.md +++ b/aspnetcore/security/authentication/cookie.md @@ -40,7 +40,7 @@ Complete the following steps: ```csharp services.AddAuthentication("MyCookieAuthenticationScheme") - .AddCookie(options => { + .AddCookie("MyCookieAuthenticationScheme", options => { options.AccessDeniedPath = "/Account/Forbidden/"; options.LoginPath = "/Account/Unauthorized/"; });