Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@authyon/server

Latest version: v0.2.0-beta.31

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: 1elshiroe, nivaldeir
26 Versions
2.1K Downloads

Scan summary

@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.

  • Releases: 26 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.2.0-beta.31.
  • Downloads: 2,125 downloads.

Versions

26 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.2.0-beta.31

Findings

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.

README

The publisher’s own README, as collected from the registry.

@authyon/server

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.

Instalação

npm install @authyon/server

Chaves e credenciais

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/auth também exporta um createClient. Se algum dia precisar dos dois no mesmo arquivo, use um alias no import: import { createClient as createServerClient } from "@authyon/server".

Verificação de token

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.

Administração de ambiente (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.

Administração por tenant (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"] });

Descoberta

await authyon.discovery.jwks(); // GET /.well-known/jwks.json
await authyon.discovery.openidConfiguration(); // GET /.well-known/openid-configuration

Build

npm install
npm run build      # dist/ (ESM + CJS + .d.ts via tsup)
npm run typecheck

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @authyon/server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229