<timestamp>Monday, Aug 10, 2026, 11:43 AM (UTC+2)</timestamp> it looks like an…
- User
Monday, Aug 10, 2026, 11:43 AM (UTC+2)
it looks like an enterprise with a license which was generated with a end life at end of july and have been prolongated online to end of august can't connect anymore to the app i though the new values where retrieved
Assistant
I'll dig into how license expiry and online renewal are handled.
Assistant
Let me verify the exact code paths myself.
I need to verify whether the online validation response includes an expiresAt field that the chat service is ignoring, so I'm checking the license service code around token verification and how it processes the online verdict. The key insight is that if the enterprise uses SSO for login—like Microsoft or OIDC—then a license expiry would disable SSO authentication
Assistant
I'm seeing the root cause now: the online validation response includes
expiresAt, but the codeAssistant
Assistant
Implementing the extend-only fix.
I need to extend the license validation to support expiration dates from the online verdict. I'm modifying the ValidateVerdict interface to include an optional
expiresAtfield, then parsing it in the token verification step. The tricky part is updating the cached license logic—it currently bails out early if there are no features, so I need to restructure that to still apply the expiration extension even when features aren't present, while keeping the restart requirement intact.The good news is that
hasFeaturealready callsisLicenseExpiredForFeatureCheckson the cached license, so updatingexpiresAtin the cache will automatically flow through to feature checks. The UI will also pick up the change sincegetStatususes the cached license. The heartbeat should keep running even for expired licenses as long as it's not offline and the license is set, which handles the edge case where a local license expired long ago.Writing the code... Refining the update function...
I'm noticing the identity check on features won't work well since the verdict provides a fresh array each time, so the early return rarely helps. I'll simplify by always updating the license with the latest expiry date and keep the code minimal and clean.
Assistant
Now the fix.
Assistant
Now tests covering the renewal path.
- User
Monday, Aug 10, 2026, 11:49 AM (UTC+2)
reapply the changes i fucked them with git
Assistant
Let me check the current state of the files.
Assistant
Both files were reverted. Let me confirm the current content and reapply.
Assistant
The changes are sitting in
stash@{0}and it contains exactly those two files. Let me verify the diff matches what I wrote.The changes are safely stored in stash@{0} with only those two files I modified, so popping it should
Assistant
Found them in
stash@{0}, but that stash is an incomplete snapshot — it adds two tests that call astubValidateResponsehelper without including the helper itself, so applying it alone would leave the test file broken. I'll reapply the edits directly instead, leaving your git state untouched.I'm noticing the diff is incomplete — it's missing the
stubValidateResponsehelper refactor and the changes to the existing "updates cached features" test. The context line at 139 shows where that test ends, but the actual modifications to use the new helper aren't showing up in the diff. This suggests the stash might have been created partway through the changes.The stash stats show 41 insertions with no deletions, but my refactor involved replacing the block with a call, which should have shown deletions. The new tests reference , but if the helper function isn't in the diff, the file would be broken — yet the tests all passed after my edits. So either the stash is a partial snapshot, or I'm misunderstanding what is actually displaying.
Assistant
Now the test file.
Assistant
Restored and verified — 15 tests pass now (the 13 originals plus the 2 new ones), and no lint errors in either file. Let me run the backend typecheck and eslint.
I'm noticing the test count jumped from 13 to 15, which is confusing since I thought I only added 2 new tests. Let me recount the original test suite to figure out where the discrepancy is.
Assistant
The changes are back in your working tree, and this time the full version — the stash only had a partial snapshot.
license.service.tsnow readsexpiresAtout of the signed online verdict and folds it into the cached license, extend-only:181:203:/Users/blef/Work/naolabs/chat/apps/backend/src/services/license.service.ts