JWT Framework
Search…
Signed Tokens
To use the signed tokens (JWS), you have to install the web-token/jwt-signature component.
1
composer require web-token/jwt-signature
Copied!
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:
1
// $serializer corresponds to the Symfony serializer
2
$serializer->serialize($data, 'jws_compact');
Copied!
Last modified 1yr ago
Copy link