DEV Community

noorix1
noorix1

Posted on

NodeJS Authentication Library

I built nauth-toolkit — an open-source, embedded auth library for Node.js (NestJS, Express, Fastify) and Frontend support for Angular and React.

I was frustrated with limitations of Cognito/Auth0 and its rising costs. Nauth runs inside your own server, stores everything in your own PostgreSQL/MySQL, and costs nothing.

It covers the full stack: email/password, social login (Google, Apple, Facebook), TOTP/SMS/Passkey MFA, adaptive risk-based MFA, refresh token rotation, CSRF protection, session management, lifecyle hooks, and audit logs — all configurable.

A few teams are already running it in production. Now looking for community feedback before we go fully open source.

https://nauth.dev | GitHub: noorixorg/nauth
Happy to answer any questions — would love to hear what you think!

Top comments (0)