isStale
isStale(
timestampSeconds,__namedParameters):boolean
Defined in: src/resources/webhook-helpers.ts:90
Returns true when a webhook timestamp (Unix epoch seconds, as a string or
number) is older than maxAgeSeconds. A timestamp that is not a finite
number is never stale.
Parameters
Section titled “Parameters”timestampSeconds
Section titled “timestampSeconds”string | number
__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”boolean
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.