openagentry

AUTH · Adapter

nextauth

via NextAuth

Session-based auth backed by NextAuth.js. JWT or database strategies; any provider.

@openagentry/adapter-auth-nextauth npm →

— · Install

Use it

# Install
$ npm install @openagentry/adapter-auth-nextauth

# Or in a workspace registered with the CLI
$ npx agentry init @openagentry/adapter-auth-nextauth

— · Default export

Pattern: eager

The default export is always a fully-instantiated adapter — env reads happen at module load and have safe fallbacks. import x from '@openagentry/adapter-auth-nextauth' gives you a working adapter immediately.

import default_ from '@openagentry/adapter-auth-nextauth';
// → authAdapter — category: 'auth', id: 'nextauth'

— · Environment

Configuration

Variable Notes
NEXTAUTH_SECRET Required.

— · Reported capabilities

What the manifest says

agentry capabilities --json reports these flags from the package's openagentry.capabilities manifest block.

sessionStrategies
jwt+database
providers
any

— · Failure modes

Error codes

5 stable codes this adapter throws. Each has a one-line resolution.