JSPM

  • Created
  • Published
  • Downloads 243
  • Score
    100M100P100Q90631F
  • License SEE LICENSE

Embedded authentication engine for Node.js — NestJS, Express, Fastify

Package Exports

  • @nauth-toolkit/core
  • @nauth-toolkit/core/internal
  • @nauth-toolkit/core/openapi

Readme

@nauth-toolkit/core

For documentation see Nauth.dev

The platform-agnostic engine behind nauth-toolkit. All authentication business logic lives here — no framework-specific code. Runs inside your server process, stores data in your own database, makes zero external API calls.

Free to use. NestJS, Express, and Fastify all run the same core.

What's inside

  • Auth flows — signup, login, email/phone verification, forgot/change password, account lockout
  • Social OAuth — Google, Apple, Facebook with web and native mobile flows, automatic account linking
  • Multi-factor auth — TOTP, SMS, email OTP, WebAuthn passkeys, recovery codes, adaptive MFA by login risk
  • JWT lifecycle — access + refresh tokens, rotation with reuse detection, cookie or JSON delivery
  • Sessions — concurrent limits, device tracking, IP geolocation, trusted devices, revocation
  • Security — Argon2id hashing, CSRF protection, rate limiting, audit trail for every event
  • Challenge-based architecture — multi-step flows (verification, MFA, password changes) return challenge states, not errors
  • Single config — one TypeScript object defines your entire auth policy; everything bootstraps from it

Usage

For most setups, install the adapter for your framework:

Then add storage, MFA, social, and email/SMS providers as needed. Each is a separate package you opt into.

Docs: nauth.dev · Examples: github.com/noorixorg/nauth · Live demo: demo.nauth.dev