jose-php
jose-php copied to clipboard
Documentation suggestion
Great library, just a small dipnote, in the encrypt decrypt section you briefly give an example:
$jwt_string = 'eyJ...';
$jwe = JOSE_JWT::decode($jwt_string);
$jwe->decrypt($private_key);
Once I inspect the object with var_dump after calling decrypt, I could see that the real payload is inside "plain_text" key, like this:
echo "$jwe->plain_text;
It would be great if you could add that to the documentation.