JWT Framework
Search…
Encrypted Tokens
To use the encrypted tokens (JWE), you have to install the web-token/jwt-encryption component.
1
composer require web-token/jwt-encryption
Copied!
When this component is installed, encryption algorithms are automatically handles by the Algorithm Manager Factory.
You can use symfony/serializer to serialize/unserialize your tokens:
1
// $serializer corresponds to the Symfony serializer
2
$serializer->serialize($data, 'jwe_compact');
Copied!
Last modified 2yr ago
Copy link