Scan your whole stack
From OX Research Newsroom
Are you using @aooth/login-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.23
@aooth/login-client was last scanned on 25 Nov 2026 at version 0.2.23. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.23 LATEST | 25 Nov 2026 | No rules fired |
| 0.2.22 | 25 Nov 2026 | No rules fired |
| 0.2.21 | 25 Nov 2026 | No rules fired |
| 0.2.20 | 25 Nov 2026 | Not shown |
| 0.2.19 | 25 Nov 2026 | Not shown |
Findings for v0.2.23. 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.23; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Zero-dependency helper that logs a user in through their browser and hands a
token back to a local process — the gh auth login pattern, for any
aoothjs authorization server.
It runs the authorization-code + PKCE flow against a one-shot loopback
redirect (http://127.0.0.1:<ephemeral-port>/callback), so nothing is ever
copy-pasted. Built on Node built-ins (node:http, node:crypto,
node:child_process) and global fetch only — no runtime dependencies.
npm i @aooth/login-client # Node >= 18
import { authorize } from "@aooth/login-client";
const { accessToken, expiresIn, userId } = await authorize({
authorizeUrl: "https://main.example.com/auth/authorize",
tokenUrl: "https://main.example.com/auth/token",
// clientId, // omit for a public/loopback client (PKCE is the binding)
// scope: ["api"],
// statusUrl: "https://main.example.com/auth/status", // optional: confirm the token works
});
// send it: Authorization: Bearer <accessToken>
What it does: opens a one-shot 127.0.0.1 listener, generates state + PKCE,
opens the browser to authorizeUrl, awaits the single callback, verifies
state (the CSRF check), then POST tokenUrl { code, code_verifier } and
returns the token. It does not crypto-validate the token — that is the
server's opaque credential; TLS + PKCE + state are the binding.
await authorize({
authorizeUrl,
tokenUrl,
openBrowser: false,
onUrl: (url) => console.log(`Open this URL to sign in:\n${url}`),
});
The loopback listener still catches the callback once the user opens the URL elsewhere on the same machine.
| Option | Default | Notes |
|---|---|---|
authorizeUrl |
— | the server's GET /auth/authorize |
tokenUrl |
— | the server's POST /auth/token |
clientId |
— | omit for a public/loopback client |
scope |
— | string[], joined with spaces |
openBrowser |
true |
set false + onUrl for headless |
onUrl |
— | always called with the authorize URL (print a fallback line) |
statusUrl |
— | optional bearer-confirm GET; adopts its userId |
timeoutMs |
300000 |
wait for the browser callback |
signal |
— | AbortSignal to cancel (e.g. on SIGINT) |
Failures throw an AuthorizeError with a .code
(provider_denied · state_mismatch · exchange_failed · timeout ·
status_check_failed).
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.