@neuctra/authix 1.2.34 → 2.0.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.
- package/README.md +7 -3
- package/dist/neuctra-authix.es.js +1314 -1173
- package/dist/neuctra-authix.umd.js +48 -48
- package/dist/sdk/index.d.ts +101 -5
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/interfaces.d.ts +9 -4
- package/dist/sdk/interfaces.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,11 +34,16 @@ pnpm add neuctra-authix
|
|
|
34
34
|
|
|
35
35
|
Before using the SDK, set up the **global configuration**.
|
|
36
36
|
|
|
37
|
+
The `apiKey` has full account authority. Initialize the SDK only in trusted
|
|
38
|
+
server-side code; never put the key in browser bundles, mobile apps, or
|
|
39
|
+
client-exposed environment variables. Frontends should call a backend you
|
|
40
|
+
control.
|
|
41
|
+
|
|
37
42
|
```ts
|
|
38
43
|
import { setSdkConfig, getSdkConfig } from "neuctra-authix/sdk";
|
|
39
44
|
|
|
40
45
|
setSdkConfig({
|
|
41
|
-
baseUrl: "https://
|
|
46
|
+
baseUrl: "https://server.authix.neuctra.com/api",
|
|
42
47
|
apiKey: "your-api-key",
|
|
43
48
|
appId: "your-app-id",
|
|
44
49
|
});
|
|
@@ -53,7 +58,7 @@ Alternatively, you can use the class-based client:
|
|
|
53
58
|
import { NeuctraAuthix } from "neuctra-authix/sdk";
|
|
54
59
|
|
|
55
60
|
const client = new NeuctraAuthix({
|
|
56
|
-
baseUrl: "https://
|
|
61
|
+
baseUrl: "https://server.authix.neuctra.com/api",
|
|
57
62
|
apiKey: "your-api-key",
|
|
58
63
|
appId: "your-app-id",
|
|
59
64
|
});
|
|
@@ -232,4 +237,3 @@ import { LoginForm } from "neuctra-authix/vue";
|
|
|
232
237
|
## 📄 License
|
|
233
238
|
|
|
234
239
|
[MIT](./LICENSE) © 2025 Neuctra
|
|
235
|
-
|