Skip to main content

Function: cronAuthorized()

cronAuthorized(req): boolean

Defined in: src/server/services/cron.ts:13

Shared-secret auth for cron route handlers. Fails CLOSED: with no CRON_SHARED_SECRET configured, nothing is authorized. Accepts the secret as ?token= or Authorization: Bearer <secret>, compared in constant time. Cron is wired in production as pg_cron → pg_net POST to these routes.

Parameters​

req​

Request

Returns​

boolean