extractJWEHeader function
Extracts and returns the header of the provided jweCompact
as a map.
Implementation
Map<String, dynamic> extractJWEHeader(String jweCompact) {
var jwe = JsonWebEncryption.fromCompactSerialization(jweCompact);
return jwe.commonProtectedHeader.toJson();
}