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

@aooth/login-client

Latest version: v0.2.23

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: mav-rik
0 Stars
0 Forks
44 Versions
3.4K Downloads
TypeScript Repo language

Scan summary

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

  • Releases: 44 versions; the latest 5 were published on 25 Nov 2026.
  • Findings: No rules fired in version 0.2.23.
  • Downloads: 3,374 downloads.

Versions

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

No rules fired in 0.2.23

Findings

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.

README

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

@aooth/login-client

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.

Install

npm i @aooth/login-client   # Node >= 18

Use

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.

Headless / SSH
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.

Options

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

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 @aooth/login-client

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229