Encrypted Tokens
composer require web-token/jwt-encryption
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:// $serializer corresponds to the Symfony serializer
$serializer->serialize($data, 'jwe_compact');
Last modified 1yr ago