Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Documentation suggestion #40

Open
IbrahimTanyalcin opened this issue Nov 28, 2018 · 0 comments
Open

Documentation suggestion #40

IbrahimTanyalcin opened this issue Nov 28, 2018 · 0 comments

Comments

@IbrahimTanyalcin
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant