@nauth-toolkit/client 0.1.132 → 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/LICENSE +1 -0
- package/README.md +12 -4
- package/package.json +19 -5
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# @nauth-toolkit/client
|
|
2
2
|
|
|
3
|
-
Framework-agnostic frontend SDK for nauth-toolkit
|
|
3
|
+
Framework-agnostic frontend SDK for [nauth-toolkit](https://nauth.dev).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Handles authentication flows from the browser — signup, login, token refresh, MFA, social OAuth, session management. Works with React, Vue, Svelte, or any TypeScript/JavaScript frontend. Ships as both CJS and ESM.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## What's included
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- **AuthClient** — typed API client for all nauth-toolkit endpoints
|
|
10
|
+
- **Token management** — automatic silent refresh, storage abstraction
|
|
11
|
+
- **MFA flows** — TOTP enrollment, SMS/email verification, passkey registration and authentication
|
|
12
|
+
- **Social OAuth** — redirect and popup flows for Google, Apple, Facebook
|
|
13
|
+
- **Session management** — list sessions, revoke sessions, device info
|
|
14
|
+
|
|
15
|
+
For Angular, use [`@nauth-toolkit/client-angular`](https://www.npmjs.com/package/@nauth-toolkit/client-angular) which builds on this SDK with Angular-specific services and DI.
|
|
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/client",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Frontend authentication SDK for nauth-toolkit — framework-agnostic TypeScript",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -40,13 +40,27 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=22.0.0"
|
|
42
42
|
},
|
|
43
|
-
"license": "
|
|
43
|
+
"license": "SEE LICENSE",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/
|
|
46
|
+
"url": "https://github.com/noorixorg/nauth"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public",
|
|
50
50
|
"tag": "latest"
|
|
51
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://nauth.dev",
|
|
53
|
+
"keywords": [
|
|
54
|
+
"nauth",
|
|
55
|
+
"authentication",
|
|
56
|
+
"auth",
|
|
57
|
+
"nodejs",
|
|
58
|
+
"typescript",
|
|
59
|
+
"frontend",
|
|
60
|
+
"sdk",
|
|
61
|
+
"client",
|
|
62
|
+
"jwt",
|
|
63
|
+
"session"
|
|
64
|
+
],
|
|
65
|
+
"sideEffects": false
|
|
52
66
|
}
|