JWT Framework
Signed Tokens
To use the signed tokens (JWS), you have to install the web-token/jwt-signature component.
composer require web-token/jwt-signature
When this component is installed, signature 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, 'jws_compact');
Export as PDF
Copy link