Beispiel #1
0
 public Handler(IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions,
                DbContext context, IHttpContextAccessor httpContextAccessor) : base(context, httpContextAccessor)
 {
     _jwtFactory = jwtFactory;
     _jwtOptions = jwtOptions.Value;
 }
Beispiel #2
0
 /// <summary>
 /// Construtor padrão
 /// </summary>
 public JwtFactory(IOptions <JwtIssuerOptions> jwtOptions)
 {
     _jwtOptions = jwtOptions.Value;
     ThrowIfInvalidOptions(_jwtOptions);
 }