Signed Tokens

Signature algorithms are automatically handled 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');

Last updated