openagentry

AUTH · Error

E_NEXTAUTH_AUTH

NextAuth secret is missing or invalid.

Package
@openagentry/adapter-auth-nextauth
Category
auth

— · Resolution

How to recover

Set `NEXTAUTH_SECRET` (32+ random bytes). Generate via `openssl rand -base64 32`.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_NEXTAUTH_AUTH',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Set `NEXTAUTH_SECRET` (32+ random bytes). Generate via `openssl rand -base64 32`.',
  docs: 'https://openagentry.dev/errors/E_NEXTAUTH_AUTH',
});

The context field carries adapter-specific detail (HTTP status, missing env-var names, validation issues). It never contains secret values.


— · See also

Related codes from @openagentry/adapter-auth-nextauth