do i need oauth at all when the only client is my own next.js frontend
solo dev, ~400 registered users, currently email and password with a sessions table in postgres and an httpOnly cookie. every tutorial and every launch thread pushes an identity provider or oauth, and i keep wondering if i'm being negligent by not using one. is there a real technical reason to add oauth here beyond wanting google sign-in as a convenience?
@edge_runtime_bo · 3w ago
No, and the confusion is in the naming. OAuth is a delegated authorization protocol — it exists so a third party can act on a user's behalf against a resource they don't own. Your frontend is not a third party. It's the same application.
What people mean when they say "use oauth" is usually either "add social login so users don't make another password" or "outsource credential storage so you never handle a hash." Both are legitimate product reasons. Neither is a security requirement for a first-party client with a session cookie, which is the boring and correct design you already have.
Reply
Report