diff --git a/aspnetcore/grpc/authn-and-authz.md b/aspnetcore/grpc/authn-and-authz.md index eed4f6349c..8af1644aca 100644 --- a/aspnetcore/grpc/authn-and-authz.md +++ b/aspnetcore/grpc/authn-and-authz.md @@ -26,10 +26,7 @@ app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); -app.UseEndpoints(endpoints => -{ - endpoints.MapGrpcService(); -}); +app.MapGrpcService(); ``` > [!NOTE]