public JwtTokenHelper(IConfiguration configuration)
 {
     Configuration = configuration;
     _tokenOptions = Configuration.GetSection("TokenOptions").Get <TokenOptions>();
 }
Esempio n. 2
0
 public JwtHelper(IConfiguration configuration)
 {
     Configuration          = configuration;
     _tokenOptions          = Configuration.GetSection("TokenOptions").Get <TokenOptions>();
     _accessTokenExpiration = DateTime.Now.AddMinutes(_tokenOptions.AccessTokenExpiration);
 }