diff --git a/DigitalData.Core.Security/TokenDescriptorProvider.cs b/DigitalData.Core.Security/TokenDescriptorProvider.cs index 3b6c5f4..a29a024 100644 --- a/DigitalData.Core.Security/TokenDescriptorProvider.cs +++ b/DigitalData.Core.Security/TokenDescriptorProvider.cs @@ -4,16 +4,9 @@ using Microsoft.IdentityModel.Tokens; namespace DigitalData.Core.Security { - public class TokenDescriptorProvider + public class TokenDescriptorProvider(IMapper mapper) { - private readonly IMapper _mapper; - - public TokenDescriptorProvider(IMapper mapper) - { - _mapper = mapper; - } - public SecurityTokenDescriptor Create(TokenDescription description) - => _mapper.Map(description, new SecurityTokenDescriptor()); + => mapper.Map(description, new SecurityTokenDescriptor()); } } \ No newline at end of file