# Usages et Avantages

Les tokens JWT sont le plus souvent utilisés pour l’authentification et l’autorisation. *(Ex. : SSO, session, web sockets, email links, etc…)*.

Ils peuvent également être utilisés pour échanger ou stocker des données chiffrées ou signées.

Contrairement à des formats binaires ou des formats XML tel que SAML, les tokens JWT sont :

* relativement légers,
* faciles à manipuler *(librairies disponibles dans de nombreux environnements),*
* faciles à manipuler et à archiver *(Ex. : stockage dans une base MongoDB)*.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide-api-rest.marmicode.fr/securite-des-apis-rest/j.w.t./usages-et-avantages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
