We don’t have a sample for that, but basically it comes down to this:
var client = new AuthenticationApiClient(new Uri("https://YOUR_AUTH0_DOMAIN"));
var result = await client.GetTokenAsync(
new ResourceOwnerTokenRequest {
ClientId = [...],
ClientSecret = [...],
Username = [...],
Password = [...]
}
);