Scan your whole stack
From OX Research Newsroom
Are you using @masks/client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.6.1
@masks/client was last scanned on 29 Nov 2026 at version 2.6.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.6.1 LATEST | 29 Nov 2026 | No rules fired |
| 2.6.0 | 7 Nov 2026 | No rules fired |
| 2.5.1 | 19 Oct 2026 | No rules fired |
| 2.5.0 | 14 Oct 2026 | Not shown |
| 2.4.0 | 11 Oct 2026 | Not shown |
Findings for v2.6.1. 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 2.6.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@masks/client signs people in to a single-page app against
masks, a self-hosted OpenID Connect provider. It runs in the
browser and holds no client secret.
npm install @masks/client
It has two modes.
A backend holds the tokens, and the browser holds only a cookie. Use this mode whenever the app has a
backend that runs a masks SDK, such as @masks/server.
import { createSession } from "@masks/client";
const auth = createSession({ basePath: "/auth" });
const account = await auth.session();
if (!account) auth.login({ returnTo: "/dashboard" });
A site with no backend runs the sign-in in the page and keeps the tokens in sessionStorage. The
Vite plugin writes a file that names the site to masks, so there is no client to register.
// vite.config.js
import { masks } from "@masks/client/vite";
export default defineConfig({ plugins: [masks({ name: "Catalog" })] });
import { createBrowserClient } from "@masks/client";
const auth = createBrowserClient({ issuer: "https://acme.auth.example.com" });
const actor = await auth.ready();
if (!actor) await auth.authorize();
Build with MASKS_ORIGIN set to the site's public address.
Actor from @masks/client/react, or the default export of @masks/client/svelte, shows an
account's name, avatar, and a sign-out button. It takes plain data as props, and ships no CSS. Its class names start with
masks-actor.
import { Actor } from "@masks/client/react";
<Actor
account={account}
avatarUrl={auth.avatarUrl(account, { size: 88 })}
onSignOut={() => auth.logout()}
/>;
Without onSignOut, no sign-out button shows. actorFrom from @masks/client reads an account the
same way, for other frameworks.
@masks/client lists every function,
option, and error.MIT.
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.