mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-15 07:17:30 +00:00
Date.parse() returns NaN for invalid date strings. Previously, a grant with expiresAt set to a malformed value (e.g. 'invalid') would pass the expiry check (NaN > Date.now() === false, but the falsy NaN would skip the check due to how the condition was written—or more precisely, would evaluate incorrectly). Now, if expiresAt is present but cannot be parsed, the grant is treated as expired/invalid rather than silently allowing access. |
||
|---|---|---|
| .. | ||
| account-core | ||
| agentstack | ||
| cli | ||
| logicsrc-mcp | ||
| plugin-core | ||
| schemas | ||
| sdk | ||
| tui | ||
| validators | ||