Commit b123c36
committed
fix: Implement secure licensing with grace periods
- Add 90-day offline grace period for licensed users
- Add 1-day offline grace period for trial users
- Conservative license deletion (only on explicit invalid/revoked)
- Unified 8-hour cache TTL for all users
- Optimize trial validation (check expiry before grace)
- Never delete licenses on network errors or grace expiry
- Protect user data with recovery paths for all blocked states
This ensures legitimate users can work offline for extended periods
while preventing license abuse. Licensed users won't lose access due
to temporary network issues or extended travel.1 parent e427cae commit b123c36
2 files changed
+217
-118
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
0 commit comments