Scan your whole stack
From OX Research Newsroom
Are you using @authyon/server?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0-beta.31
@authyon/server was last scanned on 27 Nov 2026 at version 0.2.0-beta.31. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0-beta.31 LATEST | 27 Nov 2026 | No rules fired |
| 0.2.0-beta.30 | 27 Nov 2026 | No rules fired |
| 0.2.0-beta.29 | 26 Nov 2026 | No rules fired |
| 0.2.0-beta.28 | 25 Nov 2026 | Not shown |
| 0.2.0-beta.27 | 25 Nov 2026 | Not shown |
Findings for v0.2.0-beta.31. 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.2.0-beta.31; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
SDK server-side para o Authyon — administração de ambiente/tenants (OAuth client-credentials) e verificação de access token (publishable key). Nunca importe este pacote em código de browser.
npm install @authyon/server
| Credencial | Uso |
|---|---|
envKey (pk_...) |
Selecionado em toda chamada via X-Authyon-Environment (Test/Live). Não é sensível — é a mesma chave do frontend, mas sozinha não autoriza nada. |
clientId / clientSecret (ambiente) |
Credenciais OAuth client-credentials de nível ambiente, mintadas no console. O SDK troca por um access token (POST /env/oauth/token) e o renova sozinho, usado em todo environment.* / permissions.*. Nunca exponha ao navegador. |
clientId / clientSecret (tenant) |
Credenciais por-tenant, usadas via authyon.tenant({ clientId, clientSecret }) para as chamadas TenantManagement (/tenant/...). |
import { createClient } from "@authyon/server";
const authyon = createClient({
envKey: process.env.AUTHYON_ENV_KEY, // pk_live_...
clientId: process.env.AUTHYON_CLIENT_ID, // ec_live_...
clientSecret: process.env.AUTHYON_CLIENT_SECRET,
});
@authyon/authtambém exporta umcreateClient. Se algum dia precisar dos dois no mesmo arquivo, use um alias no import:import { createClient as createServerClient } from "@authyon/server".
const { active, sub } = await authyon.introspect(token); // leve
const { user, organization } = await authyon.validate(token); // recomendado — cross-checa revogação
Veja examples/token-verification.ts para um middleware completo.
environment.*)Usa as credenciais de ambiente (clientId/clientSecret) automaticamente — o SDK minta e renova o token sozinho.
const org = await authyon.environment.tenants.create({ name: "Acme", slug: "acme" });
await authyon.environment.tenants.members.add(org.id, userId, ["owner"]);
await authyon.environment.tenants.members.assignRole(org.id, userId, "billing-admin");
await authyon.environment.tenants.members.remove(org.id, userId);
await authyon.environment.users.list({ search: "acme.com" });
await authyon.environment.roles.create({ name: "support", permissions: ["tickets:read"] });
await authyon.environment.audit.list({ take: 50 });
Veja examples/organization-membership.ts para o fluxo completo, incluindo as rotas de backend que o @authyon/auth chamaria.
Namespaces disponíveis: environment.users, environment.tenants (com .members e .roles aninhados), environment.roles, environment.permissions, environment.audit.
tenant())As credenciais de um tenant são próprias dele — use authyon.tenant(credentials) para obter um cliente escopado, que minta e cacheia seu próprio token via POST /tenant/oauth/token:
const acme = authyon.tenant({ clientId: acmeClientId, clientSecret: acmeClientSecret });
await acme.members.list();
await acme.members.add(userId, ["member"]);
await acme.roles.create({ name: "viewer", permissions: ["reports:read"] });
await authyon.discovery.jwks(); // GET /.well-known/jwks.json
await authyon.discovery.openidConfiguration(); // GET /.well-known/openid-configuration
npm install
npm run build # dist/ (ESM + CJS + .d.ts via tsup)
npm run typecheck 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.