Prompt Buddy logoPrompt Buddy

authjs · Auth.js Docs

Auth.js | Debugging

Teaches how to enable built-in debugging via the configuration object and how to implement a custom logger to intercept and redirect authentication logs to external services.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Auth.js | Debugging

Teaches how to enable built-in debugging via the configuration object and how to implement a custom logger to intercept and redirect authentication logs to external services.

When To Use

Use when you need to troubleshoot authentication failures, inspect database requests, or redirect Auth.js logs to a third-party logging service.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/auth-js-debugging-workflow-guide.mdA guide explaining how to enable the debug option in the Auth.js configuration to log authentication processes, requests, and errors.Questions about a guide explaining how to enable the debug option in the Auth.js configuration to log authentication processes, reque...
examples/auth-js-debugging-authjs-nextauth-debug-mode-configuration.textA code snippet demonstrating how to enable the debug option within the NextAuth configuration object.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to enable the debug option within the NextAuth configuration object.
examples/auth-js-debugging-authjs-custom-logger-implementation.textA code example demonstrating how to implement a custom logger object within the NextAuth configuration to intercept error, warn, and debug events.Exact payloads, commands, or snippets shown in A code example demonstrating how to implement a custom logger object within the NextAuth configuration to intercept e...

What This Skill Covers

  • Debugging Auth.js starts with enabling the debug option in your main Auth.js configuration.
  • Main sections: Logging.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://authjs.dev/guides