> For the complete documentation index, see [llms.txt](https://docs.audit.venturytechnology.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.audit.venturytechnology.fr/architecture-fonctionnel/flux-de-donnees.md).

# Flux de données

{% stepper %}
{% step %}

### \[/] - Page d'accueil

L'utilisateur clique sur commencer

Purge tous les cookies existants
{% endstep %}

{% step %}

### \[/auth] - Saisie des credentials

Serveur Actions -> `auth.data.ts`  vérification sans DB

Cookie "auth" posé (HTTP-Only)
{% endstep %}

{% step %}

### \[/auth/mfa] - Envoi du code MFA

Serveur Action -> `sendMFACode` envoie le code par mail

Cookie "mfa\_pending" posé
{% endstep %}

{% step %}

### \[/auth/verify] - Saisie du code reçu par email

Server Actions -> `verify` vérification que le code reçu est bien fait par le mail

Cookie "mfa\_verified" posé
{% endstep %}

{% step %}

### \[/audit] - Questionnaire (5 domaines, 15 questions)

Réponses stockées dans le Quiz-Store (context)
{% endstep %}

{% step %}

### \[/result] - Page de résultats

lib/result.utils.ts caclule tout les scores et informations sur les réponses

Affichages score, étoiles, graphiques, remédiation

api/mail/send envoie le rapport en PDF via lib/pdf.tsx
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.audit.venturytechnology.fr/architecture-fonctionnel/flux-de-donnees.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.
