Use Case Guide

Debug NextAuth

Gain full visibility into your NextAuth.js session state. Inspect JWTs, troubleshoot session callbacks, and test protected routes with ease.

The Problem

NextAuth logic often happens in server-side callbacks or middleware, making it hard to see why a session is invalid or missing specific fields.

The DevConsole Solution

DevConsole provides a visual viewer for the NextAuth session object and allows you to intercept the auth-check requests made by the client.

Step-by-Step Implementation

Inspect the Session

Use the 'State' tab to see the live useSession()/getSession() output.

Trace JWT Callbacks

Capture the /api/auth/session calls to see the raw JSON response from your server.

Test Auth Middleware

Inject 'stale' or 'malformed' cookies to see how your middleware handles redirects.

Related Questions

Does it work with the App Router?

Absolutely. DevConsole is built for Next.js 13+ and works perfectly with App Router auth patterns.

Can I see the raw session cookie?

Yes, DevConsole provides a visual cookie manager where you can inspect (and edit) your next-auth.session-token.

Start Debugging Smarter

DevConsole is free during development. Join 5,000+ developers shipping better code.

Get Started Now