using AutoMapper;
using DigitalData.Core.Security.Config;
using Microsoft.IdentityModel.Tokens;
namespace DigitalData.Core.Security
{
public static class Extension
{
///
/// Maps a to a .
///
/// The instance used for mapping.
/// The instance to be mapped.
/// A instance populated with the mapped values.
/// Thrown if or is null.
public static SecurityTokenDescriptor Map(this IMapper mapper, TokenDescription description)
=> mapper.Map(description, new SecurityTokenDescriptor());
}
}