🚫 Why We Removed NextAuth from Our SaaS
FJRG2007 ツ

FJRG2007 ツ @fjrg2007

About: Cybersecurity & Artificial Intelligence Specialist | Founder & CEO, TPEOficial | Full-Stack Developer, DevSecOps & Intelligence Analyst

Location:
Spain
Joined:
Jun 19, 2024

🚫 Why We Removed NextAuth from Our SaaS

Publish Date: Apr 21
2 0

Some time ago, we were struck by a real-world case: a Kick (Twitch alternative) user got hacked, and the attacker started streaming from their account.

The issue? Kick was using JWTs stored on the client side to manage sessions, and they couldn’t invalidate a single compromised session without rotating the secret — which would log out everyone. All of this was done to avoid database queries.

That situation taught us a powerful lesson:
👉 Optimizing for fewer DB calls should never come at the cost of security.

We decided to build our own authentication system inspired by NextAuth — but entirely based on database-backed sessions.

As far as we know, there’s no public implementation with this level of control yet.

Since then, we’ve continued to improve our security stack even further.

💬 Would you be interested in a deep dive into how we built it?

auth #nextauth #cybersecurity #nextjs #typescript #programming #dymoapi

Comments 0 total

    Add comment