protected TokenFactory(ITokenSigningCredentials credentials, ITokenSpecification specification, JwtSecurityTokenHandler jwtSecurityTokenHandler = null) { _ = credentials ?? throw new ArgumentNullException(nameof(credentials)); Credentials = credentials; _ = specification ?? throw new ArgumentNullException(nameof(specification)); Specification = specification; JwtSecurityTokenHandler = jwtSecurityTokenHandler ?? new JwtSecurityTokenHandler(); }
public AuthenticationTokenFactory(ITokenSigningCredentials credentials, ITokenSpecification specs, JwtSecurityTokenHandler tokenHandler = null) : base(credentials, specs, tokenHandler) { }
public RefreshTokenFactory(ITokenSigningCredentials credentials, ITokenSpecification specs, JwtSecurityTokenHandler jwtSecurityTokenHandler, JwtSecurityTokenHandler tokenHandler = null) : base(credentials, specs, jwtSecurityTokenHandler) { }