Session Auth without Next-Auth

Hi all,

I’m primarily a backend dev with experience using Express/Fastify with session-based authentication using cookies and libraries like express-session.

I’m diving pretty deep into NextJS and the T3 stack, but one question I just haven’t been able to “crack” is how to do session auth using this stack. The vast majority of projects I’m in use credential-based auth, which I don’t find plays very nicely with Next-Auth which I know most Next devs use. I’ve tried it a number of times, but I really believe Next-Auth is a bit too opinionated for credentials (or at the very least requires a LOT of setup/boilerplate).

That being said, has anyone had any success using a different library for session auth in NextJS? I really like using Redis for this, as that allows a method for revoking tokens/user sessions. Thanks in advance!
Was this page helpful?