openagentry

AUTH · Error

E_NEXTAUTH_API

NextAuth surfaced an API error.

Package
@openagentry/adapter-auth-nextauth
Category
auth

— · Resolution

How to recover

Inspect `error.context` for the underlying NextAuth error.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_NEXTAUTH_API',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Inspect `error.context` for the underlying NextAuth error.',
  docs: 'https://openagentry.dev/errors/E_NEXTAUTH_API',
});

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