public static byte[] DecodeBytes(string token, object key, JwsAlgorithm alg) { JweAlgorithm? nullable = null; JweEncryption?nullable1 = null; return(JWT.DecodeBytes(token, key, new JwsAlgorithm?(alg), nullable, nullable1)); }
public static byte[] DecodeBytes(string token, object key = null) { return(JWT.DecodeBytes(token, key, null, null, null)); }
private static string Decode(string token, object key = null, JwsAlgorithm?jwsAlg = null, JweAlgorithm?jweAlg = null, JweEncryption?jweEnc = null) { byte[] numArray = JWT.DecodeBytes(token, key, jwsAlg, jweAlg, jweEnc); return(Encoding.UTF8.GetString(numArray)); }