@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 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://api.neuctra.com",
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://api.neuctra.com",
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
-