Skip to content

Commit

Permalink
Fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jul 15, 2023
1 parent 1ee5f48 commit 6d9f7ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TodoApi/Users/UsersApi.cs
Expand Up @@ -15,9 +15,8 @@ public static RouteGroupBuilder MapUsers(this IEndpointRouteBuilder routes)

group.MapIdentityApi<TodoUser>();

// The MapIdentityApi doesn't expose an external login endpoint so we keep this one
// also, the identity
// External login
// The MapIdentityApi<T> doesn't expose an external login endpoint so we write this custom endpoint that follows
// a similar pattern
group.MapPost("/token/{provider}", async Task<Results<SignInHttpResult, ValidationProblem>> (string provider, ExternalUserInfo userInfo, UserManager<TodoUser> userManager, SignInManager<TodoUser> signInManager) =>
{
var user = await userManager.FindByLoginAsync(provider, userInfo.ProviderKey);
Expand Down

0 comments on commit 6d9f7ae

Please sign in to comment.