Skip to main content

Module supporter

Module supporter 

Source

StructsΒ§

LsActivateResponse πŸ”’
LsInstance πŸ”’
LsValidateResponse πŸ”’
SupporterRecord
SupporterStatus

ConstantsΒ§

FILE_NAME πŸ”’
LS_API_BASE πŸ”’
OFFLINE_GRACE πŸ”’
VALIDATE_INTERVAL πŸ”’

FunctionsΒ§

activate_remote
activate_remote_at πŸ”’
HTTP-layer split for activate_remote: takes an explicit base URL so tests can point it at mockito::Server without bringing up Lemon Squeezy. The production caller hard-codes LS_API_BASE.
delete
file_path
is_supporter_now
Single-call answer to β€œis this install a supporter right now?”. Reads the on-disk record and applies the offline grace window so callers don’t have to thread now/grace logic of their own. Used by gated IPC paths (e.g. custom_css) to authorise per-call.
is_within_grace
load
mask_key
needs_revalidation
save
validate_remote
validate_remote_at πŸ”’
HTTP-layer split for validate_remote. See activate_remote_at.