To use the encrypted tokens (JWE), you have to install the web-token/jwt-encryption componentarrow-up-right.
web-token/jwt-encryption
composer require web-token/jwt-encryption
This component provides lot of encryption algorithms and classes to load and create encrypted tokens.
Please refer to this encryption algorithm table to know what algorithms are available.
Then, you will find an example to create an encrypted token here and another example to load and decrypt incoming tokens.
Last updated 7 years ago
Was this helpful?