@econneq/auth-cli 1.0.2 → 1.0.4

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
@@ -12,6 +12,14 @@ The CLI is standalone. You **don't** need `auth-core`, `auth-react`, or anything
12
12
 
13
13
  ## Use without installing
14
14
 
15
+ ```bash
16
+ cd project root
17
+ pnpm add -D @econneq/auth-cli
18
+ pnpm exec econneq-auth init
19
+ ```
20
+
21
+ or
22
+
15
23
  ```bash
16
24
  npx @econneq/auth-cli init
17
25
  # or, after global install:
package/dist/bin.js CHANGED
@@ -36,7 +36,7 @@ function generateAuthConfig(a) {
36
36
 
37
37
  export const authConfig = defineAuthConfig({
38
38
  appName: '${a.appName}',
39
- apiBaseUrl: process.env.NEXT_PUBLIC_AUTH_API_URL ?? '${a.apiBaseUrl}',
39
+ apiBaseUrl: process.env.NEXT_PUBLIC_BACKEND_URL ?? '${a.apiBaseUrl}',
40
40
  tenantMode: ${a.tenantMode},
41
41
 
42
42
  routing: {
@@ -139,7 +139,7 @@ async function initCommand() {
139
139
  type: "text",
140
140
  name: "apiBaseUrl",
141
141
  message: "Auth API base URL?",
142
- initial: "https://api.yourdomain.com"
142
+ initial: "https://api.e-conneq.com"
143
143
  },
144
144
  {
145
145
  type: "confirm",
@@ -213,11 +213,11 @@ async function initCommand() {
213
213
  console.log(" " + import_chalk.default.green(".env.local"));
214
214
  console.log("\n" + import_chalk.default.bold("Next steps:"));
215
215
  if (answers.framework === "nextjs") {
216
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
216
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-nextjs`);
217
217
  console.log(` 2. Wrap your root layout with <AuthProvider config={authConfig}>`);
218
218
  console.log(` 3. Ensure proxy.ts is at your project root`);
219
219
  } else {
220
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
220
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-ui`);
221
221
  console.log(` 2. Wrap your App with <AuthProvider config={authConfig}>`);
222
222
  }
223
223
  console.log(` 4. Set your API URL in .env.local`);
package/dist/bin.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-2DIZS5TH.mjs";
4
+ } from "./chunk-R677WW5L.mjs";
5
5
 
6
6
  // src/bin.ts
7
7
  run();
@@ -14,7 +14,7 @@ function generateAuthConfig(a) {
14
14
 
15
15
  export const authConfig = defineAuthConfig({
16
16
  appName: '${a.appName}',
17
- apiBaseUrl: process.env.NEXT_PUBLIC_AUTH_API_URL ?? '${a.apiBaseUrl}',
17
+ apiBaseUrl: process.env.NEXT_PUBLIC_BACKEND_URL ?? '${a.apiBaseUrl}',
18
18
  tenantMode: ${a.tenantMode},
19
19
 
20
20
  routing: {
@@ -117,7 +117,7 @@ async function initCommand() {
117
117
  type: "text",
118
118
  name: "apiBaseUrl",
119
119
  message: "Auth API base URL?",
120
- initial: "https://api.yourdomain.com"
120
+ initial: "https://api.e-conneq.com"
121
121
  },
122
122
  {
123
123
  type: "confirm",
@@ -191,11 +191,11 @@ async function initCommand() {
191
191
  console.log(" " + chalk.green(".env.local"));
192
192
  console.log("\n" + chalk.bold("Next steps:"));
193
193
  if (answers.framework === "nextjs") {
194
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
194
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-nextjs`);
195
195
  console.log(` 2. Wrap your root layout with <AuthProvider config={authConfig}>`);
196
196
  console.log(` 3. Ensure proxy.ts is at your project root`);
197
197
  } else {
198
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
198
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-ui`);
199
199
  console.log(` 2. Wrap your App with <AuthProvider config={authConfig}>`);
200
200
  }
201
201
  console.log(` 4. Set your API URL in .env.local`);
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ function generateAuthConfig(a) {
48
48
 
49
49
  export const authConfig = defineAuthConfig({
50
50
  appName: '${a.appName}',
51
- apiBaseUrl: process.env.NEXT_PUBLIC_AUTH_API_URL ?? '${a.apiBaseUrl}',
51
+ apiBaseUrl: process.env.NEXT_PUBLIC_BACKEND_URL ?? '${a.apiBaseUrl}',
52
52
  tenantMode: ${a.tenantMode},
53
53
 
54
54
  routing: {
@@ -151,7 +151,7 @@ async function initCommand() {
151
151
  type: "text",
152
152
  name: "apiBaseUrl",
153
153
  message: "Auth API base URL?",
154
- initial: "https://api.yourdomain.com"
154
+ initial: "https://api.e-conneq.com"
155
155
  },
156
156
  {
157
157
  type: "confirm",
@@ -225,11 +225,11 @@ async function initCommand() {
225
225
  console.log(" " + import_chalk.default.green(".env.local"));
226
226
  console.log("\n" + import_chalk.default.bold("Next steps:"));
227
227
  if (answers.framework === "nextjs") {
228
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
228
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-nextjs`);
229
229
  console.log(` 2. Wrap your root layout with <AuthProvider config={authConfig}>`);
230
230
  console.log(` 3. Ensure proxy.ts is at your project root`);
231
231
  } else {
232
- console.log(` 1. npm install @econneq/auth-react @econneq/auth-ui`);
232
+ console.log(` 1. npm install @econneq/auth-core @econneq/auth-react @econneq/auth-ui`);
233
233
  console.log(` 2. Wrap your App with <AuthProvider config={authConfig}>`);
234
234
  }
235
235
  console.log(` 4. Set your API URL in .env.local`);
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-2DIZS5TH.mjs";
4
+ } from "./chunk-R677WW5L.mjs";
5
5
  export {
6
6
  run
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econneq/auth-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "CLI — npx econneq-auth init",
5
5
  "author": "Econneq",
6
6
  "license": "MIT",