{% set microsoftToken = employe.getOAuthTokens()|filter(t => t.type == 'microsoft')|first %}
{% if microsoftToken and microsoftToken.accessToken is not null and microsoftToken.refreshToken is not null %}
✅ Votre compte Microsoft est connecté.
Vous pouvez désormais synchroniser vos e-mails, calendriers et contacts.
{% set googleToken = employe.getOAuthTokens()|filter(t => t.type == 'google')|first %}
{% if googleToken and googleToken.accessToken is not null and googleToken.refreshToken is not null %}
✅ Votre compte Google est connecté.
Votre compte est prêt à interagir avec Gmail (envoi, lecture, étiquetage…).