Set onEvent to receive best-effort lifecycle events. An unavailable event
sink does not turn a completed OAuth exchange or secret operation into a failed
request.
Event types
Events can include a provider ID, connection path, token name, error code,
refresh flag, or replay flag depending on the operation. They do not include
access tokens, refresh tokens, client secrets, or stored secret values.
Delivery behavior
Hookfish awaits the handler during the operation but catches and logs handler
errors. Treat delivery as best effort. If your audit requirements demand
durable delivery, make the handler write to a reliable local queue or durable
outbox and process the external export separately.
Keep event payloads free of application session tokens and request bodies
when enriching them in your own adapter.