Scan your whole stack
Are you using @authentify2026/sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.9.0
@authentify2026/sdk was last scanned on 24 Nov 2026 at version 0.9.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.9.0 LATEST | 24 Nov 2026 | No rules fired |
| 0.8.0 | 19 Nov 2026 | No rules fired |
| 0.7.0 | 19 Nov 2026 | No rules fired |
| 0.6.0 | 17 Nov 2026 | Not shown |
| 0.5.0 | 7 Oct 2026 | Not shown |
Findings for v0.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.9.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Typed TypeScript/JavaScript client for the Authentify API. Covers the core partner-facing surface -- domain-neutral authorization, OAuth 2.1 token management, consent sessions, authorization approval, agent creation, and audit logs -- so you don't hand-write fetch calls against the raw REST API.
Not a full 1:1 mirror of every endpoint yet (billing, SLA, and rules-engine management aren't covered) -- see the developer docs and API reference for the complete reference if you need something this SDK doesn't expose yet.
npm install @authentify2026/sdk
import { AuthentifyClient } from '@authentify2026/sdk';
const client = new AuthentifyClient({
apiKey: process.env.AUTHENTIFY_API_KEY!,
environment: 'sandbox', // or 'production'
});
const result = await client.authorize({
action: 'approve_claim',
resource: { id: 'claim_123', type: 'insurance_claim' },
context: { claimantTier: 'gold' },
});
if (result.decision === 'escalate') {
// Hold the action. Your approvers are emailed approve/reject links;
// check getAuthorizationRequest() (account-level key) for the outcome.
}
const client = new AuthentifyClient({
clientId: process.env.AUTHENTIFY_KEY_ID!,
clientSecret: process.env.AUTHENTIFY_KEY_SECRET!,
environment: 'production',
});
// No manual token handling required -- authorize() mints and refreshes
// the underlying OAuth token for you.
await client.authorize({ action: 'read_document', resource: { id: 'document_123', type: 'document' } });
Want a token scoped to less than the agent's full permissions, or bound to a specific end user's consent? Call mintToken() directly:
const { access_token } = await client.mintToken({ scope: 'READ', endUserId: 'retail-cust-42' });
const session = await client.createConsentSession({
agent_id: 'YOUR_AGENT_ID',
customer_id: 'YOUR_CUSTOMER_ID',
end_user_id: 'retail-cust-42',
scope: ['READ', 'TRANSFER'],
});
// session.widget_url -- send your retail customer here, or render
// @authentify2026/consent-widget client-side with session.session_id.
An escalated request returns an approvalRequestId. Approvals are cast by people, not by your backend: an approver votes from the
dashboard while signed in to a login linked to their operator, or through the
single-use approve/reject links Authentify emails them when a request
escalates. Calls made with an API key are refused (403), so one key can't
meet a multi-approver quorum on its own. Your backend learns the outcome with
getAuthorizationRequest(), using your account-level API key (an agent's own
key is refused):
const account = new AuthentifyClient({ apiKey: process.env.AUTHENTIFY_ACCOUNT_KEY!, environment: 'production' });
const status = await account.getAuthorizationRequest(result.authorizationRequestId);
// status.approvalStatus: 'pending' | 'approved' | 'rejected'
approveAuthorizationRequest() / rejectAuthorizationRequest() are
deprecated for that reason. Since 0.6.0 they throw an AuthentifyError
(status 403) straight away, without calling the API.
A Finance domain may choose to create a linked transaction projection, but it does not change the API contract or approval workflow.
For a terminal allow/deny decision, authorizeOap() returns an
Ed25519-signed, Open Agent Passport-shaped decision
object instead of Authentify's native response -- a counterparty can verify
it independently against the public key published at GET /.well-known/oap/,
with no call back into this API required. OAP has no "pending human review"
state, so an escalated decision falls back to the native AuthorizeResponse
shape unchanged -- use authorize() instead if your caller needs to handle
escalation explicitly.
const decision = await client.authorizeOap({
action: 'transfer_funds',
resource: { id: 'account_456', type: 'account' },
});
if ('allow' in decision) {
// OAP-shaped: decision.allow, decision.signature, decision.reasons, ...
} else {
// Escalated -- native AuthorizeResponse shape (decision.approvalRequestId, ...)
}
Send your own id for the run (a conversation, job or task) as sessionId, and the request a call follows from as parentRequestId. Requests that share a session are listed together on each request's page in the dashboard, and both fields are sealed with the request.
const sessionId = `run_${runId}`; // 1-128 printable characters, no spaces; no personal data
const lookup = await client.authorize({ action: 'READ', resource: { id: accountId }, sessionId });
const transfer = await client.authorize({
action: 'XFR', resource: { id: accountId }, context: { amount },
sessionId, parentRequestId: lookup.authorizationRequestId,
});
A request that names only parentRequestId joins the parent's session. A parent from another account or environment, or one in a different session, is refused with a 400. Find a run's requests with GET /api/v2/authorization-requests?session_id=..., or the requests that followed one with ?parent_request_id=....
Only calls that ask Authentify appear in a session. An action the agent takes without calling authorize() is not recorded; require a decision token (below) in the APIs you control so it can't be.
guard()authorize() returns every decision with HTTP 200 -- allow, deny and escalate -- so code that only checks for an error would carry on after a deny. Put the action behind guard() instead. It resolves only on allow, and throws AuthentifyDecisionError otherwise:
import { AuthentifyClient, AuthentifyDecisionError } from '@authentify2026/sdk';
const client = new AuthentifyClient({ apiKey: process.env.AUTHENTIFY_API_KEY!, environment: 'production', timeoutMs: 5000 });
try {
await client.guard({ action: 'XFR', resource: { type: 'account', id: accountId }, context: { amount } });
await executeTransfer(); // only runs on allow
} catch (err) {
if (err instanceof AuthentifyDecisionError) {
// err.reason: 'denied' | 'escalated' (wait for a human) | 'unavailable' (no answer: timeout, network, error)
}
throw err;
}
Every request has a timeout (timeoutMs, default 10 s). When Authentify can't answer, guard() treats the action as not authorized. For an API you run yourself, also require a decision token (below) so the check can't be skipped.
authorize(), guard() and authorizeOap() retry a network error, a timeout or a 5xx up to maxRetries times (default 2; 0 turns retries off). Every attempt carries the same Idempotency-Key, so if an earlier attempt did reach Authentify, the retry gets that decision back (idempotentReplay: true) instead of making, sealing and billing a second one. A 4xx is never retried.
Pass your own key to make a retry across process restarts safe too, for example your job id:
await client.guard(params, { idempotencyKey: `refund-${order.id}` });
Keys are remembered for 24 hours, per agent. Reusing a key for a different request throws AuthentifyError (409). A replay never carries a decision token: one decision gets at most one, and the first response had it.
When Authentify signs agent tokens with its published key (EdDSA), your API or gateway can check a token itself, without calling Authentify: signature, issuer, audience, environment, expiry and scope.
Pick an identifier for your API (for example https://api.yourbank.com/claims). Agents mint tokens for it:
const { access_token } = await agentClient.mintToken({
audience: 'https://api.yourbank.com/claims',
scope: 'approve_claim',
});
and your API accepts only tokens minted for it:
import { verifyAuthentifyToken, AuthentifyTokenError } from '@authentify2026/sdk';
try {
const claims = await verifyAuthentifyToken(bearerToken, {
audience: 'https://api.yourbank.com/claims', // required
requiredScope: 'approve_claim',
// environment: 'sandbox', // default 'production' refuses sandbox tokens
});
claims.sub; // who the agent acts for: the end user id, or "agent:<id>"
claims.act?.sub; // the acting agent, when the token is bound to an end user
} catch (err) {
if (err instanceof AuthentifyTokenError) {
// err.code: malformed | unsupported_alg | unknown_key | bad_signature |
// invalid_claims | expired | insufficient_scope | jwks_unavailable
return reply(401);
}
throw err;
}
For endpoints that pass requiredScope, have the agent mint its token with an explicit scope; a token without a scope claim is refused there, because your API can't see the agent's full permission list. A token bound to an end user (endUserId) never carries more than that user consented to.
API gateways (Tyk, Kong, Apigee, AWS API Gateway, Azure API Management) can do the same with their built-in JWT validation: JWKS URL https://www.authentify.bz/.well-known/jwks.json, issuer https://www.authentify.bz, algorithm EdDSA, audience = your API identifier, plus a claim check that environment is production.
A token says what an agent may do at your API. It is not proof that Authentify approved a specific action: authorize() still decides each action, escalates to a human when needed, and records the evidence, so keep calling it (or check its decision) for consequential actions.
An access token says what an agent may do. A decision token proves Authentify allowed (or a human approved) one specific action, so your API can refuse anything that wasn't decided, even if the agent skips authorize().
The agent names your API when it asks:
const result = await agentClient.authorize({
action: 'XFR',
resource: { type: 'account', id: 'acct_123' },
context: { amount: 250 },
audience: 'https://api.yourbank.com/payments',
});
// result.decision === 'allow' -> result.decisionToken (60 s, single use)
// Escalated and approved later:
const { decisionToken } = await agentClient.getDecisionToken(result.authorizationRequestId, 'https://api.yourbank.com/payments');
and sends it with the call to your API (for example in an Authentify-Decision header). Your endpoint checks it before executing:
import { verifyAuthentifyDecision } from '@authentify2026/sdk';
const decision = await verifyAuthentifyDecision(req.headers['authentify-decision'], {
audience: 'https://api.yourbank.com/payments',
action: 'XFR',
resourceId: req.body.accountId,
// The details you are about to execute: the same object the agent sent as
// `context` to /v2/authorize. A different amount, payee or currency is refused.
context: { amount: req.body.amount, currency: req.body.currency },
isReplay: async (jti) => (await redis.set(`decision:${jti}`, '1', 'EX', 120, 'NX')) !== 'OK',
});
decision.decision_id; // the authorization request -- its sealed audit record
context is checked. It is hashed as canonical JSON (sorted keys) and compared to the token's context_sha256, so an approval for $50 can't execute $5,000. Build it from what your endpoint will actually execute, with the same fields and types the agent authorized.resourceId and context are required. Pass null to skip one deliberately (an endpoint with no single resource, or details you check another way); leaving one out throws, so a check is never skipped by accident. (Changed in 0.8.0: before, both were optional and context was never checked.)isReplay so the same token can't be used twice within its 60 seconds.typ values; neither verifier accepts the other.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.