@nauth-toolkit/core 0.2.6 → 0.2.7
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.
package/LICENSE
CHANGED
|
@@ -1,91 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
================================================================================
|
|
23
|
-
|
|
24
|
-
1. Grant of Use
|
|
25
|
-
You are granted a free, non-exclusive, non-transferable license to:
|
|
26
|
-
- Install and use nauth-toolkit packages in development, testing, staging,
|
|
27
|
-
and production environments
|
|
28
|
-
- Modify the code for your own internal use
|
|
29
|
-
- Deploy applications using nauth-toolkit to serve your users
|
|
30
|
-
|
|
31
|
-
You may NOT:
|
|
32
|
-
- Redistribute NAuth Toolkit as a standalone product or service
|
|
33
|
-
- Sell, sublicense, or offer NAuth Toolkit as part of a competing auth
|
|
34
|
-
platform or toolkit
|
|
35
|
-
- Remove or alter copyright notices
|
|
36
|
-
|
|
37
|
-
2. No Fees During Early Access
|
|
38
|
-
There are no license fees, subscription costs, or usage charges during the
|
|
39
|
-
Early Access period. You may use nauth-toolkit freely for commercial and
|
|
40
|
-
non-commercial purposes within the terms of this license.
|
|
41
|
-
|
|
42
|
-
3. Production Use
|
|
43
|
-
Production use is permitted but comes with standard early-access caveats:
|
|
44
|
-
- Features and APIs may change between preview releases
|
|
45
|
-
- Support is community-based (GitHub issues/discussions)
|
|
46
|
-
- No SLA or guaranteed uptime (you run it on your infrastructure)
|
|
47
|
-
|
|
48
|
-
We recommend thorough testing and having rollback plans for critical systems.
|
|
49
|
-
|
|
50
|
-
4. Future Transition
|
|
51
|
-
When nauth-toolkit releases v1.0 GA:
|
|
52
|
-
- Core packages will adopt an open-source license (MIT or Apache 2.0)
|
|
53
|
-
- Your existing deployments will continue to work
|
|
54
|
-
- Premium features (if any) will be clearly documented with separate licensing
|
|
55
|
-
- No forced upgrades or surprise fees
|
|
56
|
-
|
|
57
|
-
5. Ownership
|
|
58
|
-
NAuth Toolkit is developed and maintained by Noorix Digital Solutions.
|
|
59
|
-
You retain full ownership of your applications and data.
|
|
60
|
-
|
|
61
|
-
6. Data and Privacy
|
|
62
|
-
NAuth Toolkit runs in YOUR infrastructure and database. You control all data.
|
|
63
|
-
You are responsible for compliance with applicable data protection laws.
|
|
64
|
-
|
|
65
|
-
7. Disclaimer of Warranty
|
|
66
|
-
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
67
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
68
|
-
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
|
69
|
-
|
|
70
|
-
8. Limitation of Liability
|
|
71
|
-
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
|
|
72
|
-
SPECIAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS
|
|
73
|
-
OF PROFITS, REVENUE, DATA, OR USE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
74
|
-
DAMAGES.
|
|
75
|
-
|
|
76
|
-
9. Termination
|
|
77
|
-
This license remains in effect until:
|
|
78
|
-
- You stop using nauth-toolkit, or
|
|
79
|
-
- The project transitions to open source (at which point the new license applies)
|
|
80
|
-
|
|
81
|
-
If you breach these terms, your license terminates and you must stop using the
|
|
82
|
-
software.
|
|
83
|
-
|
|
84
|
-
10. Contact and Support
|
|
85
|
-
- Documentation: https://nauth.dev
|
|
86
|
-
- Issues/Discussions: GitHub (when public repository launches)
|
|
87
|
-
- Commercial inquiries: Contact admin@noorix.com
|
|
88
|
-
|
|
89
|
-
================================================================================
|
|
90
|
-
Thank you for being an early adopter. Your feedback shapes the future of NAuth.
|
|
91
|
-
================================================================================
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Noorix Digital Solutions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The authentication engine behind nauth-toolkit. All auth business logic lives here — signup, login, MFA, social OAuth, sessions, JWT lifecycle, and more. Runs inside your server process, stores all data in your own database, makes zero external API calls.
|
|
4
4
|
|
|
5
|
-
**[Documentation](https://nauth.dev)** · **[Quick Start](https://nauth.dev/docs/quick-start/nestjs)** · **[API Reference](https://nauth.dev/docs/api/overview)** · **[Live Demo](https://demo.nauth.dev)** · **[GitHub](https://github.com/noorixorg/nauth)**
|
|
5
|
+
**[Documentation](https://nauth.dev)** · **[Quick Start](https://nauth.dev/docs/quick-start/nestjs)** · **[API Reference](https://nauth.dev/docs/api/overview)** · **[Live Demo](https://demo.nauth.dev)** · **[GitHub](https://github.com/noorixorg/nauth-toolkit)**
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -189,12 +189,12 @@ Full working examples with Docker, database setup, and frontend integration:
|
|
|
189
189
|
|
|
190
190
|
| Example | Description |
|
|
191
191
|
| ------------------------------------------------------------------------ | ------------------------------------------- |
|
|
192
|
-
| [Express](https://github.com/noorixorg/nauth/tree/main/examples/express) | Express + TypeORM + PostgreSQL |
|
|
193
|
-
| [Fastify](https://github.com/noorixorg/nauth/tree/main/examples/fastify) | Fastify + TypeORM + PostgreSQL |
|
|
194
|
-
| [NestJS](https://github.com/noorixorg/nauth/tree/main/examples/nestjs) | NestJS + TypeORM + PostgreSQL |
|
|
195
|
-
| [React](https://github.com/noorixorg/nauth/tree/main/examples/react) | React frontend with `@nauth-toolkit/client` |
|
|
192
|
+
| [Express](https://github.com/noorixorg/nauth-toolkit/tree/main/examples/express) | Express + TypeORM + PostgreSQL |
|
|
193
|
+
| [Fastify](https://github.com/noorixorg/nauth-toolkit/tree/main/examples/fastify) | Fastify + TypeORM + PostgreSQL |
|
|
194
|
+
| [NestJS](https://github.com/noorixorg/nauth-toolkit/tree/main/examples/nestjs) | NestJS + TypeORM + PostgreSQL |
|
|
195
|
+
| [React](https://github.com/noorixorg/nauth-toolkit/tree/main/examples/react) | React frontend with `@nauth-toolkit/client` |
|
|
196
196
|
|
|
197
|
-
**Repository:** [github.com/noorixorg/nauth](https://github.com/noorixorg/nauth)
|
|
197
|
+
**Repository:** [github.com/noorixorg/nauth-toolkit](https://github.com/noorixorg/nauth-toolkit)
|
|
198
198
|
|
|
199
199
|
---
|
|
200
200
|
|
|
@@ -292,9 +292,9 @@ Required if you enable phone verification or SMS MFA.
|
|
|
292
292
|
| Auth flows guide | [nauth.dev/docs/guides/basic-auth](https://nauth.dev/docs/guides/basic-auth) |
|
|
293
293
|
| API reference | [nauth.dev/docs/api/overview](https://nauth.dev/docs/api/overview) |
|
|
294
294
|
| Frontend SDK | [nauth.dev/docs/frontend-sdk/overview](https://nauth.dev/docs/frontend-sdk/overview) |
|
|
295
|
-
| Example apps | [github.com/noorixorg/nauth](https://github.com/noorixorg/nauth/tree/main/examples) |
|
|
295
|
+
| Example apps | [github.com/noorixorg/nauth-toolkit](https://github.com/noorixorg/nauth-toolkit/tree/main/examples) |
|
|
296
296
|
| Live demo | [demo.nauth.dev](https://demo.nauth.dev) |
|
|
297
297
|
|
|
298
298
|
---
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
MIT licensed. See [LICENSE](https://github.com/noorixorg/nauth-toolkit/blob/main/LICENSE).
|
|
@@ -1172,7 +1172,7 @@ export interface SecurityConfig {
|
|
|
1172
1172
|
sameSite?: 'strict' | 'lax' | 'none';
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Cookie domain (for subdomain sharing)
|
|
1175
|
-
* @example '.
|
|
1175
|
+
* @example '.example.com' to share across subdomains
|
|
1176
1176
|
*/
|
|
1177
1177
|
domain?: string;
|
|
1178
1178
|
/**
|
|
@@ -10,8 +10,8 @@ import { StorageAdapter } from '../interfaces/storage-adapter.interface';
|
|
|
10
10
|
*
|
|
11
11
|
* RECOMMENDATIONS:
|
|
12
12
|
* - Single ECS task: Acceptable (data lost on restart)
|
|
13
|
-
* - Multi-task/container ECS: Use Redis adapter (
|
|
14
|
-
* - Production:
|
|
13
|
+
* - Multi-task/container ECS: Use the Redis adapter (@nauth-toolkit/storage-redis)
|
|
14
|
+
* - Production: Use a shared storage adapter (Redis or database-backed)
|
|
15
15
|
*
|
|
16
16
|
* CURRENT BEHAVIOR:
|
|
17
17
|
* Rate limiting works per-container, not globally across containers
|
|
@@ -12,8 +12,8 @@ exports.MemoryStorageAdapter = void 0;
|
|
|
12
12
|
*
|
|
13
13
|
* RECOMMENDATIONS:
|
|
14
14
|
* - Single ECS task: Acceptable (data lost on restart)
|
|
15
|
-
* - Multi-task/container ECS: Use Redis adapter (
|
|
16
|
-
* - Production:
|
|
15
|
+
* - Multi-task/container ECS: Use the Redis adapter (@nauth-toolkit/storage-redis)
|
|
16
|
+
* - Production: Use a shared storage adapter (Redis or database-backed)
|
|
17
17
|
*
|
|
18
18
|
* CURRENT BEHAVIOR:
|
|
19
19
|
* Rate limiting works per-container, not globally across containers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nauth-toolkit/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Embedded authentication engine for Node.js — NestJS, Express, Fastify",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@maxmind/geoip2-node": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
52
|
-
"@nauth-toolkit/recaptcha": "^0.2.
|
|
52
|
+
"@nauth-toolkit/recaptcha": "^0.2.7",
|
|
53
53
|
"typeorm": "^0.3.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"access": "public",
|
|
77
77
|
"tag": "latest"
|
|
78
78
|
},
|
|
79
|
-
"license": "
|
|
79
|
+
"license": "MIT",
|
|
80
80
|
"keywords": [
|
|
81
81
|
"nauth",
|
|
82
82
|
"authentication",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"sideEffects": false,
|
|
116
116
|
"repository": {
|
|
117
117
|
"type": "git",
|
|
118
|
-
"url": "https://github.com/noorixorg/nauth"
|
|
118
|
+
"url": "https://github.com/noorixorg/nauth-toolkit"
|
|
119
119
|
},
|
|
120
120
|
"homepage": "https://nauth.dev"
|
|
121
121
|
}
|