feat(customer): show NetBird API token renewal/expiry date

Displays when the per-customer token was last (re-)issued and its
computed expiry (365 days from renewal) on the Auto-Updates card, so it's
visible at a glance without checking the database.
This commit is contained in:
2026-08-19 11:21:55 +02:00
parent 1bc768151a
commit a8ed87faa9
4 changed files with 18 additions and 0 deletions
+4
View File
@@ -288,6 +288,10 @@ async def get_customer_netbird_updates(
settings = result["settings"]
return {
"has_token": True,
"token_renewed_at": (
deployment.netbird_api_token_renewed_at.isoformat()
if deployment.netbird_api_token_renewed_at else None
),
"version": settings.get("auto_update_version", "disabled"),
"always": bool(settings.get("auto_update_always", False)),
}