Skip to content

fix(licensing): keep real expiry on license during grace period#7

Merged
lucasfischer merged 1 commit into
mainfrom
fix/grace-period-preserves-expiry
Jun 21, 2026
Merged

fix(licensing): keep real expiry on license during grace period#7
lucasfischer merged 1 commit into
mainfrom
fix/grace-period-preserves-expiry

Conversation

@lucasfischer

Copy link
Copy Markdown
Contributor

What

During the grace period, the License surfaced in .gracePeriod(license) now
carries the token's real expiry (payload.exp) instead of a synthetic date
extended to the grace deadline (payload.exp + gracePeriod).

graceLicense(for:) previously did license.expiresAt = graceEnd; it now
returns License(from: payload) unchanged.

Why

expiresAt should report when the license actually expired. The grace state is
already communicated by the .gracePeriod case of ValidationStatus, so
inflating expiresAt to the grace deadline conflated two distinct dates and
misrepresented the license.

@lucasfischer lucasfischer merged commit 03a2b8a into main Jun 21, 2026
2 checks passed
@lucasfischer lucasfischer deleted the fix/grace-period-preserves-expiry branch June 21, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant