← all notes
Guide5 min

Auth without fear: sessions, JWTs and password resets

the feature everyone's afraid of, and why it doesn't need to be scary.

Auth scares people — two weeks of 'where do I store the token?' and 'what if attackers think about this more than I do?'. The good news: solid auth is mostly boring, and boring is exactly what you want here.

Sessions when you own the page, short-lived JWTs when you need stateless APIs, and a battle-tested provider (Better Auth, Supabase Auth, NextAuth) instead of a hand-rolled crypto toy. The docs know more than your clever idea.

Password resets, email verification and rate limiting aren't afterthoughts — they're sixty percent of the feature. decide them upfront, and the scary part disappears.boring is exactly what you want

the point is simple — the details are not.