예제 #1
0
 public JwtFactory(IJwtTokenHandler jwtTokenHandler, JwtIssuerOptions jwtOptions)
 {
     _jwtTokenHandler = jwtTokenHandler;
     _jwtOptions      = jwtOptions;
     ThrowIfInvalidOptions(_jwtOptions);
 }
예제 #2
0
 public JwtFactory(IJwtTokenHandler jwtTokenHandler, IOptions <JwtIssuerOptions> jwtOptions)
 {
     _jwtTokenHandler = jwtTokenHandler;
     _jwtOptions      = jwtOptions.Value;
     ThrowIfInvalidOptions(_jwtOptions);
 }