Ensure your security logic is watertight. Test how your middleware handles expired sessions, missing tokens, and incorrect roles.
Middleware logic is hard to test interactive because it happens before a page even loads, making it difficult to 'inspect' its variables.
DevConsole logs the headers and cookies sent to your middleware and any 'Internal-Redirect' headers it sends back.
Use the cookie manager to quickly wipe your session and navigate to a protected page.
Edit your JWT or session string to have 'user' role instead of 'admin' and refresh.
Ensure the middleware correctly bounces the request to /login or /unauthorized.
Yes! It's specifically optimized for Next.js and Remix middleware patterns.
Yes, DevConsole identifies when a request was rewritten internally by your server.
Explore more ways to use DevConsole to speed up your development
DevConsole is free during development. Join 5,000+ developers shipping better code.
Get Started Now