Esempio n. 1
0
 public string Generate(IEnumerable <Claim> claims, DateTime expires)
 {
     return(JWT.Generate(claims, _key, _issuer, expires));
 }
Esempio n. 2
0
 public string Generate(IEnumerable <Claim> claims)
 {
     return(JWT.Generate(claims, _key, _issuer, DateTime.Now.AddMinutes(30)));
 }