Commit graph

2 commits

Author SHA1 Message Date
nullref
681600360d fix(policy): treat malformed grant expiresAt as expired, not active
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.
2026-06-14 07:35:44 +02:00
c23ce42948 Add communication account plugin scaffolds 2026-06-09 10:02:07 +00:00