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:
@@ -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)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user