Skip to content

Commit 07a97aa

Browse files
Simplify AddAuthentication
Use the string overload rather than the options overload.
1 parent 23eb413 commit 07a97aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TodoApp/AuthenticationEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static class AuthenticationEndpoints
3131
public static IServiceCollection AddGitHubAuthentication(this IServiceCollection services)
3232
{
3333
return services
34-
.AddAuthentication(options => options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme)
34+
.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
3535
.AddCookie(options =>
3636
{
3737
options.LoginPath = SignInPath;

0 commit comments

Comments
 (0)