authjs-knowledge-patch

authjs-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 9 tokens per session (2,110 once invoked), scanned A, original, MIT.

A reference guide for Auth.js, a library that adds sign-in, accounts, and sessions to web applications. It covers authentication providers, framework integration, adapters, migrations, and security.

In plain words
What is it for?
Use it when adding or changing sign-in flows, OAuth providers, credentials, passkeys, sessions, database adapters, Auth.js upgrades, or a move to Better Auth.
Why use it?
It helps choose a maintained authentication approach and avoid provider, session, migration, and security mistakes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it when adding or changing sign-in flows, OAuth providers, credentials, passkeys, sessions, database adapters, Auth.js upgrades, or a move to Better Auth.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill authjs-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authjs-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authjs-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/authjs-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.02110
Opus 5.5 $0.00004 $0.00844
Sonnet 5.5 $0.00002 $0.00422
Haiku 4.5 $0.00001 $0.00211

Measured today against content hash 3dfa7316fbb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

authjs-knowledge-patch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/authjs-knowledge-patch/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Auth.js Knowledge Patch

Use this skill when configuring Auth.js providers, sessions, adapters, framework integrations, or operational upgrades. Load the relevant reference for full examples and configuration details.

Reference Topics
Providers and Authentication OAuth checks and account fields, Credentials, email providers, experimental Passkey setup, account linking, native OAuth clients
Sessions and Framework Integrations JWT and database sessions, magic-link lifecycle, Qwik, SvelteKit, Express, session endpoint caching
Auth.js v5 Migration and Next.js Integration Next.js Proxy runtime and custom Passkey pages
Adapters, Operations, and Security Token parsing, host precedence, CommonJS, security updates, corporate proxies, token refresh, adapters, framework scaffolding, logging
Better Auth Transition Maintenance and project choice

Upgrade and compatibility checks

OAuth check cookies and malformed tokens

OAuth state, nonce, and PKCE check cookies are bound to their creating provider. A callback handled by another provider rejects those cookies. Restart OAuth sign-ins in progress during an upgrade if their callbacks fail.

getToken() returns null for a malformed Bearer value in the Authorization header. Handle it through the same path as a missing token.

Host precedence and CommonJS

In trusted-host mode, an explicit NEXTAUTH_URL takes precedence over the host auto-detected from forwarded headers.

The 4.24.15 release uses uuid@^11.1.1, restoring support for loading next-auth via require() on Node.js versions earlier than 20.19.

Package-specific fixes

[email protected] sets the built-in GitHub provider's default issuer to https://github.com/login/oauth. Upgrade if GitHub sign-in on an older v4 release fails when openid-client validates the iss authorization callback parameter.

Read the full file on GitHub · 208 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +8 lines 3dfa7316fbb2
  2. 3mo ago First seen · 200 lines · 9 tokens per session scan A 93367134087b

Subscribe to this mod's changes

authjs-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 2,110 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

authjs-knowledge-patch compared with skills from other repositories

authjs-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
authjs-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA9Claude Code
design-mcp-servercyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A62Claude Code
add-toolcyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A35Claude Code
api-contextcyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A84Claude Code
api-errorscyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A54Claude Code
api-telemetrycyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A85Claude Code
api-mirrorcyanheads/obsidian-mcp-serverSkill72221d agoApache-2.0A68Claude Code