# Signed Tokens

To use the signed tokens (JWS), you have to install the [`web-token/jwt-signature` component](https://github.com/web-token/jwt-signature).

```bash
composer require web-token/jwt-signature
```

When this component is installed, signature algorithms are automatically handles by the Algorithm Manager Factory.

* [JWS serializers](https://web-token.spomky-labs.com/2.x/the-symfony-bundle/signed-tokens/jws-serializers),
* [JWS creation](https://web-token.spomky-labs.com/2.x/the-symfony-bundle/signed-tokens/jws-creation),
* [JWS verification](https://web-token.spomky-labs.com/2.x/the-symfony-bundle/signed-tokens/jws-verification).

You can use `symfony/serializer` to serialize/unserialize your tokens:

```php
// $serializer corresponds to the Symfony serializer
$serializer->serialize($data, 'jws_compact');
```
