Skip to content

IAV-1243/feat(whatsapp): scheduled token refresh with orchestration-based credential pair resolution

salaheddine zidani a demandé de fusionner feature/IAV-1243 vers develop

Introduces the automated WhatsApp token refresh pipeline.

A daily cron job detects WHATSAPP credentials expiring within 15 days, resolves their primary/OAuth pairs via the orchestration service, and exchanges short-lived tokens through the Facebook Graph API before they expire.

Changes:

  • WhatsAppTokenRefreshScheduler — core scheduler (discovery → refresh → report)
  • OrchestrationService / OrchestrationServiceImpl — REST client for credential pair resolution
  • CredentialRepository — new findWhatsAppExpiringCredentialsByType query
  • N8NTechnicalError — new N8N_T051 code for pair resolution failures

Rapports de requête de fusion