Set a credential
A credential is asecret() declared in your tree and passed to the binder.
Setting it seals its value: only the performer opens it, and no read returns it. Set it as an operator
with bijection secret set and its tree path, with
the value on standard input:
bijection/app.ts
source functions
own status, pause, resume and reset; use them to change acquisition or discard
a position.
Authentication kinds
A binder’sauth is one of the receiver auth kinds: none, bearer,
header (a name and optional prefix, such as Authorization with
Basic ), multiSecret (two to eight header, query or jsonBody
bindings, each its own secret()), oauth2, oauth1, awsSigV4 and
windowsNtlm; socket and database protocols also take password, sasl
and clientCertificate. For HTTP Basic, use header auth with prefix: "Basic "
and set the secret to the Base64 encoding of user:password. The host adds
each value immediately before dispatch; keep credentials out of profiles and
arguments.
Declare a receiver
To call an API from your own functions, declare areceiver from
@bijectionhq/bijection and submit its operations:
bijection/crm.ts
nulls: "keep" on the
operation sends them. receiver({ sign: secret }) signs each send as a
Standard Webhooks request. An operation with capture: receiver performs an
OAuth token exchange whose access token the host keeps as a bearer only that
receiver presents. label bounds what a send may carry. The result sits
at the join of the sender’s commit label and the receiver’s label. For a
request-time URL, use openEndpoint from @bijectionhq/library-sources to
declare the HTTPS host and port policy.