Przejdź do głównej zawartości

Interface: BuildForwardedIpHeadersOptions

Properties

ip

ip: string | null | undefined

Real buyer IP (e.g. from the incoming request's x-doswiftly-client-ip / cf-connecting-ip header).


now?

optional now?: () => number

Clock source (unix ms). Injectable for tests; defaults to Date.now.

Returns

number


secret

secret: string | null | undefined

Per-shop signing secret (server-side only).


shopSlug

shopSlug: string | null | undefined

Shop slug bound into the signature — must match the X-Shop-Slug the backend verifies.