コード例 #1
0
 private string EncodeHeader(JwtHeader header) => Base64Encode(JsonConvert.SerializeObject(header));
コード例 #2
0
 public JwtEncoder(string secret, JwtHeader header, int expiration)
 {
     _secret     = secret;
     _header     = header;
     _expiration = expiration;
 }