Overview
Add a secondary safety mechanism that proactively warns 15 days before the LinkedIn refresh_token expires (365-day TTL). This acts as a fallback in case the auto-refresh function (#58) itself fails silently over multiple months.
Depends on: #58
Tasks
var secret = new KeyVaultSecret("LinkedInRefreshToken", newRefreshToken);
secret.Properties.ExpiresOn = DateTimeOffset.UtcNow.AddDays(365);
await secretClient.SetSecretAsync(secret);
Acceptance Criteria
Notes
- This is a defense-in-depth measure — under normal operation (monthly auto-refresh working correctly) this function should never fire a warning
- Weekly check is sufficient given the 15-day warning window
References
Overview
Add a secondary safety mechanism that proactively warns 15 days before the LinkedIn
refresh_tokenexpires (365-day TTL). This acts as a fallback in case the auto-refresh function (#58) itself fails silently over multiple months.Depends on: #58
Tasks
LinkedInTokenRefresherFunctionsuccessfully stores a newrefresh_token, tag the Key Vault secret with the expiry date:TimerTriggerfunctionLinkedInTokenExpiryWarningFunctionthat runs weekly (0 0 9 * * 1) and:ExpiresOnproperty ofLinkedInRefreshTokenfrom Key VaultLogWarningwith message"LinkedIn refresh token expires in {days} days. Manual re-authorization required."Acceptance Criteria
Notes
References