auth 1.5.0-beta.16 → 1.5.0-beta.17
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/dist/index.mjs +13 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/LICENSE.md +0 -20
package/dist/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import { BetterAuthError } from "@better-auth/core/error";
|
|
|
22
22
|
import { loadConfig } from "c12";
|
|
23
23
|
import * as os$1 from "node:os";
|
|
24
24
|
import os from "node:os";
|
|
25
|
+
import open from "open";
|
|
25
26
|
import z from "zod";
|
|
26
27
|
import { env } from "@better-auth/core/env";
|
|
27
28
|
import { log } from "@clack/prompts";
|
|
@@ -5281,13 +5282,22 @@ export const auth = betterAuth({
|
|
|
5281
5282
|
s.success("Dependencies installed successfully!");
|
|
5282
5283
|
})();
|
|
5283
5284
|
for (const step of additionalSteps) await step();
|
|
5284
|
-
|
|
5285
|
+
const connectResponse = await prompts({
|
|
5285
5286
|
type: "confirm",
|
|
5286
5287
|
name: "connect",
|
|
5287
5288
|
message: "Would you like to connect your app to Better Auth infrastructure?",
|
|
5288
5289
|
initial: true
|
|
5289
|
-
})
|
|
5290
|
-
|
|
5290
|
+
});
|
|
5291
|
+
if (connectResponse.connect === void 0) {
|
|
5292
|
+
console.log(chalk.yellow("\n✖ ") + "Setup cancelled before connecting to Better Auth infrastructure.\n");
|
|
5293
|
+
return;
|
|
5294
|
+
}
|
|
5295
|
+
if (connectResponse.connect === void 0) {
|
|
5296
|
+
console.log(chalk.yellow("\n✖ ") + "Setup cancelled before connecting to Better Auth infrastructure.\n");
|
|
5297
|
+
return;
|
|
5298
|
+
}
|
|
5299
|
+
if (connectResponse.connect) {
|
|
5300
|
+
await open("https://beta.better-auth.com/onboarding");
|
|
5291
5301
|
console.log(chalk.cyan("\n→ ") + "Opening Better Auth onboarding in your browser...\n");
|
|
5292
5302
|
}
|
|
5293
5303
|
console.log(chalk.green(`\n✔ `) + chalk.bold("Success! ") + "Project setup complete.\n");
|