IAV-1243/feat(whatsapp): scheduled token refresh with orchestration-based credential pair resolution
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— newfindWhatsAppExpiringCredentialsByTypequery -
N8NTechnicalError— newN8N_T051code for pair resolution failures