jose-php icon indicating copy to clipboard operation
jose-php copied to clipboard

Documentation suggestion

Open IbrahimTanyalcin opened this issue 6 years ago • 0 comments

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.

IbrahimTanyalcin avatar Nov 28 '18 00:11 IbrahimTanyalcin