@@ -253,7 +253,7 @@ private async Task<Exception> CreateMissingSignInHandlerException(string scheme)
253
253
var schemes = await GetAllSignInSchemeNames ( ) ;
254
254
255
255
// CookieAuth is the only implementation of sign-in.
256
- var footer = $ " Did you forget to call AddAuthentication().AddCookies (\" { scheme } \" ,...)?";
256
+ var footer = $ " Did you forget to call AddAuthentication().AddCookie (\" { scheme } \" ,...)?";
257
257
258
258
if ( string . IsNullOrEmpty ( schemes ) )
259
259
{
@@ -275,7 +275,7 @@ private async Task<Exception> CreateMismatchedSignInHandlerException(string sche
275
275
{
276
276
// CookieAuth is the only implementation of sign-in.
277
277
return new InvalidOperationException ( mismatchError
278
- + $ "Did you forget to call AddAuthentication().AddCookies (\" Cookies\" ) and SignInAsync(\" Cookies\" ,...)?") ;
278
+ + $ "Did you forget to call AddAuthentication().AddCookie (\" Cookies\" ) and SignInAsync(\" Cookies\" ,...)?") ;
279
279
}
280
280
281
281
return new InvalidOperationException ( mismatchError + $ "The registered sign-in schemes are: { schemes } .") ;
@@ -292,7 +292,7 @@ private async Task<Exception> CreateMissingSignOutHandlerException(string scheme
292
292
{
293
293
var schemes = await GetAllSignOutSchemeNames ( ) ;
294
294
295
- var footer = $ " Did you forget to call AddAuthentication().AddCookies (\" { scheme } \" ,...)?";
295
+ var footer = $ " Did you forget to call AddAuthentication().AddCookie (\" { scheme } \" ,...)?";
296
296
297
297
if ( string . IsNullOrEmpty ( schemes ) )
298
298
{
@@ -314,7 +314,7 @@ private async Task<Exception> CreateMismatchedSignOutHandlerException(string sch
314
314
{
315
315
// CookieAuth is the most common implementation of sign-out, but OpenIdConnect and WsFederation also support it.
316
316
return new InvalidOperationException ( mismatchError
317
- + $ "Did you forget to call AddAuthentication().AddCookies (\" Cookies\" ) and { nameof ( SignOutAsync ) } (\" Cookies\" ,...)?") ;
317
+ + $ "Did you forget to call AddAuthentication().AddCookie (\" Cookies\" ) and { nameof ( SignOutAsync ) } (\" Cookies\" ,...)?") ;
318
318
}
319
319
320
320
return new InvalidOperationException ( mismatchError + $ "The registered sign-out schemes are: { schemes } .") ;
0 commit comments