Skip to content

Make License.expiresAt the license end date - #11

Merged
lucasfischer merged 2 commits into
mainfrom
feat/license-end-date
Oct 4, 2026
Merged

lucasfischer merged 2 commits into
mainfrom
feat/license-end-date

Conversation

@lucasfischer

Copy link
Copy Markdown
Contributor

Summary

License.expiresAt now gives the license end date, not the token expiry. The value comes from a new expires_at claim in the token.

Follow-up changes:

  • Grace does not apply to a license past its end date, unless the subscription renews.
  • The checkout receipt shows "Trial ends" for a trial that converts, and "Lifetime" for a purchase with no end date.

Breaking change

License.expiresAt is nil for a license that never expires and for a token minted before the claim existed. Code that force-unwraps it can crash.

@lucasfischer
lucasfischer merged commit 56b513a into main Oct 4, 2026
2 checks passed
@lucasfischer
lucasfischer deleted the feat/license-end-date branch October 4, 2026 08:11
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