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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/auth-js-debugging-workflow-guide.md | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://authjs.dev/guides