@nauth-toolkit/nestjs 0.1.133 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -4
  2. package/package.json +14 -8
package/README.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # @nauth-toolkit/nestjs
2
2
 
3
- NestJS adapter for nauth-toolkit - Platform-specific integrations
3
+ NestJS module for [nauth-toolkit](https://nauth.dev) the embedded authentication library for Node.js.
4
4
 
5
- ## Preview Release Notice
5
+ Provides a `DynamicModule` with `forRoot()` / `forRootAsync()` that wires the nauth-toolkit core into NestJS dependency injection. Adds guards, decorators, and interceptors so authentication integrates with NestJS conventions.
6
6
 
7
- **This is a preview release for internal testing. Do not use in production yet.**
7
+ ## What's included
8
8
 
9
- This package is part of nauth-toolkit and is currently in early access/preview. Features and APIs may change between releases. For production use, please wait for the stable v1.0 release.
9
+ - **AuthModule** `forRoot()` and `forRootAsync()` registration with full config support
10
+ - **Guards** — `AuthGuard` (JWT validation), `CsrfGuard` (CSRF token enforcement)
11
+ - **Decorators** — `@CurrentUser()`, `@Public()`, `@ClientInfo()`, `@TokenDelivery()`, `@RequireRecaptcha()`
12
+ - **Interceptors** — context management and cookie-based token delivery
13
+ - **Auto-registration** — MFA and social providers are discovered and registered at bootstrap
14
+
15
+ Requires `@nauth-toolkit/core` and a database adapter (e.g. `@nauth-toolkit/database-typeorm-postgres`). Add storage, email, SMS, MFA, and social providers as needed.
16
+
17
+ **Docs:** [nauth.dev](https://nauth.dev) · **Examples:** [github.com/noorixorg/nauth](https://github.com/noorixorg/nauth) · **Live demo:** [demo.nauth.dev](https://demo.nauth.dev)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nauth-toolkit/nestjs",
3
- "version": "0.1.133",
4
- "description": "NestJS adapter for nauth-toolkit - Platform-specific integrations",
3
+ "version": "0.2.1",
4
+ "description": "NestJS module for nauth-toolkit guards, decorators, interceptors",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -20,16 +20,21 @@
20
20
  "lint:fix": "eslint \"{src,test}/**/*.ts\" --fix"
21
21
  },
22
22
  "keywords": [
23
- "nestjs",
23
+ "nauth",
24
24
  "authentication",
25
25
  "auth",
26
+ "nodejs",
27
+ "typescript",
28
+ "nestjs",
26
29
  "jwt",
27
30
  "oauth",
28
31
  "mfa",
29
- "security"
32
+ "guards",
33
+ "decorators",
34
+ "module"
30
35
  ],
31
36
  "author": "nauth-toolkit",
32
- "license": "SEE LICENSE IN LICENSE",
37
+ "license": "SEE LICENSE",
33
38
  "peerDependencies": {
34
39
  "@nestjs/common": "^9.0.0 || ^10.0.0 || ^11.0.0",
35
40
  "@nestjs/core": "^9.0.0 || ^10.0.0 || ^11.0.0",
@@ -39,7 +44,7 @@
39
44
  "typeorm": "^0.3.0"
40
45
  },
41
46
  "dependencies": {
42
- "@nauth-toolkit/core": "0.1.133"
47
+ "@nauth-toolkit/core": "^0.2.1"
43
48
  },
44
49
  "devDependencies": {
45
50
  "@nestjs/common": "^11.1.8",
@@ -70,6 +75,7 @@
70
75
  "sideEffects": false,
71
76
  "repository": {
72
77
  "type": "git",
73
- "url": "https://github.com/noorixorg/nauth-toolkit"
74
- }
78
+ "url": "https://github.com/noorixorg/nauth"
79
+ },
80
+ "homepage": "https://nauth.dev"
75
81
  }