Skip to content

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.

string | number

IsStaleOptions

boolean

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.