@nauth-toolkit/client-angular 0.1.133 → 0.2.0
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/README.md +10 -4
- package/package.json +16 -12
package/README.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
# @nauth-toolkit/client-angular
|
|
2
2
|
|
|
3
|
-
Angular
|
|
3
|
+
Angular SDK for [nauth-toolkit](https://nauth.dev).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Wraps the framework-agnostic `@nauth-toolkit/client` with Angular services, guards, and HTTP interceptors. Integrates with Angular dependency injection and handles token refresh, auth state, and route protection.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## What's included
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- **NAuthModule** — Angular module for DI integration
|
|
10
|
+
- **AuthService** — reactive auth state, login, signup, logout, token refresh
|
|
11
|
+
- **AuthGuard** — route protection with automatic redirect
|
|
12
|
+
- **HTTP interceptor** — attaches tokens to outgoing requests, handles 401 refresh
|
|
13
|
+
- **Lazy-loadable** — ships only what your app imports
|
|
14
|
+
|
|
15
|
+
**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,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nauth-toolkit/client-angular",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Angular
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Angular SDK for nauth-toolkit — services, guards, interceptors",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nauth",
|
|
7
7
|
"authentication",
|
|
8
|
-
"angular",
|
|
9
8
|
"auth",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
9
|
+
"nodejs",
|
|
10
|
+
"typescript",
|
|
11
|
+
"angular",
|
|
12
|
+
"frontend",
|
|
13
|
+
"sdk",
|
|
14
|
+
"client",
|
|
15
|
+
"rxjs"
|
|
13
16
|
],
|
|
14
17
|
"author": "nauth-toolkit",
|
|
15
|
-
"license": "SEE LICENSE
|
|
18
|
+
"license": "SEE LICENSE",
|
|
16
19
|
"repository": {
|
|
17
20
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/noorixorg/nauth"
|
|
19
22
|
},
|
|
20
23
|
"publishConfig": {
|
|
21
24
|
"access": "public",
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
"peerDependencies": {
|
|
25
28
|
"@angular/common": ">=17.0.0",
|
|
26
29
|
"@angular/core": ">=17.0.0",
|
|
27
|
-
"@nauth-toolkit/client": "^0.
|
|
30
|
+
"@nauth-toolkit/client": "^0.2.0",
|
|
28
31
|
"rxjs": "^7.0.0 || ^8.0.0"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
@@ -33,6 +36,8 @@
|
|
|
33
36
|
"engines": {
|
|
34
37
|
"node": ">=22.0.0"
|
|
35
38
|
},
|
|
39
|
+
"homepage": "https://nauth.dev",
|
|
40
|
+
"sideEffects": false,
|
|
36
41
|
"module": "fesm2022/nauth-toolkit-client-angular.mjs",
|
|
37
42
|
"typings": "index.d.ts",
|
|
38
43
|
"exports": {
|
|
@@ -57,6 +62,5 @@
|
|
|
57
62
|
"esm": "./esm2022/src/standalone/nauth-toolkit-client-angular-src-standalone.mjs",
|
|
58
63
|
"default": "./fesm2022/nauth-toolkit-client-angular-src-standalone.mjs"
|
|
59
64
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}
|
|
65
|
+
}
|
|
66
|
+
}
|