コード例 #1
0
 public JwtTokenHelper(IConfiguration configuration)
 {
     Configuration = configuration;
     _tokenOptions = Configuration.GetSection("TokenOptions").Get <TokenOptions>();
 }
コード例 #2
0
ファイル: JwtHelper.cs プロジェクト: hlltml/ReCapProject
 public JwtHelper(IConfiguration configuration)
 {
     Configuration          = configuration;
     _tokenOptions          = Configuration.GetSection("TokenOptions").Get <TokenOptions>();
     _accessTokenExpiration = DateTime.Now.AddMinutes(_tokenOptions.AccessTokenExpiration);
 }