authverse 1.1.7 → 1.1.8-beta.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.
Files changed (24) hide show
  1. package/dist/index.cjs +315 -104
  2. package/dist/index.js +315 -104
  3. package/dist/template/proxy/proxy.ts +1 -1
  4. package/package.json +2 -2
  5. /package/dist/template/{TanstackState → TanstackStart}/components/AppleOAuthButton.tsx +0 -0
  6. /package/dist/template/{TanstackState → TanstackStart}/components/FacebookOAuthButton.tsx +0 -0
  7. /package/dist/template/{TanstackState → TanstackStart}/components/ForgetComponent.tsx +0 -0
  8. /package/dist/template/{TanstackState → TanstackStart}/components/GithubProviders.tsx +0 -0
  9. /package/dist/template/{TanstackState → TanstackStart}/components/GoogleOAuthButton.tsx +0 -0
  10. /package/dist/template/{TanstackState → TanstackStart}/components/LinkedInOAuthButton.tsx +0 -0
  11. /package/dist/template/{TanstackState → TanstackStart}/components/LoginComponent.tsx +0 -0
  12. /package/dist/template/{TanstackState → TanstackStart}/components/ResetComponent.tsx +0 -0
  13. /package/dist/template/{TanstackState → TanstackStart}/components/SingUpComponent.tsx +0 -0
  14. /package/dist/template/{TanstackState → TanstackStart}/components/TwitterOAuthButton.tsx +0 -0
  15. /package/dist/template/{TanstackState → TanstackStart}/lib/Mongodb/auth.ts +0 -0
  16. /package/dist/template/{TanstackState → TanstackStart}/lib/Mysql/auth.ts +0 -0
  17. /package/dist/template/{TanstackState → TanstackStart}/lib/Postgresql/auth.ts +0 -0
  18. /package/dist/template/{TanstackState → TanstackStart}/lib/auth-drizzle.ts +0 -0
  19. /package/dist/template/{TanstackState → TanstackStart}/middleware/auth.ts +0 -0
  20. /package/dist/template/{TanstackState → TanstackStart}/routes/$.ts +0 -0
  21. /package/dist/template/{TanstackState → TanstackStart}/routes/auth/forget.tsx +0 -0
  22. /package/dist/template/{TanstackState → TanstackStart}/routes/auth/login.tsx +0 -0
  23. /package/dist/template/{TanstackState → TanstackStart}/routes/auth/reset-password.tsx +0 -0
  24. /package/dist/template/{TanstackState → TanstackStart}/routes/auth/signup.tsx +0 -0
package/dist/index.cjs CHANGED
@@ -83,6 +83,14 @@ var runCommand = (cmd) => {
83
83
  }
84
84
  };
85
85
 
86
+ // utils/CreateFolder.ts
87
+ var CreateFolder = ({
88
+ srcFolder,
89
+ destFolder
90
+ }) => {
91
+ return `\u2022 ${srcFolder === "" ? "" : srcFolder + "/"}${destFolder}`;
92
+ };
93
+
86
94
  // script/authUi.ts
87
95
  var import_meta = {};
88
96
  var shadcnComponents = [
@@ -97,7 +105,8 @@ var shadcnComponents = [
97
105
  var authUiRun = async ({
98
106
  folder,
99
107
  packageJson: packageJson2,
100
- cmd
108
+ cmd,
109
+ database
101
110
  }) => {
102
111
  try {
103
112
  const projectDir = process.cwd();
@@ -198,7 +207,25 @@ ${layoutContent}`;
198
207
  }
199
208
  import_fs.default.writeFileSync(layoutPath, layoutContent, "utf-8");
200
209
  }
201
- console.log(import_chalk.default.green("\nSetup completed!\n"));
210
+ console.log(import_chalk.default.green("\nCompleted installation successfully"));
211
+ console.log(import_chalk.default.cyan("\nInstall Package:"));
212
+ console.log(import_chalk.default.white(`\u2022 ${database} schema
213
+ \u2022 better-auth`));
214
+ console.log(import_chalk.default.cyan("\nFiles created:"));
215
+ console.log(
216
+ import_chalk.default.white(
217
+ `${CreateFolder({ srcFolder: folder, destFolder: "lib/auth.ts" })}
218
+ ${CreateFolder({ srcFolder: folder, destFolder: "lib/auth-client.ts" })}
219
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/api/auth/[...all]/route.ts" })}
220
+ ${CreateFolder({ srcFolder: folder, destFolder: "proxy.ts" })}
221
+ ${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/LoginComponent.tsx" })}
222
+ ${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/SingUpComponent.tsx" })}
223
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/auth/layout.tsx" })}
224
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/auth/login/page.tsx" })}
225
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/auth/signup/page.tsx" })}
226
+ `
227
+ )
228
+ );
202
229
  } catch (error) {
203
230
  console.log(import_chalk.default.red("\nauthUi setup failed:"), error);
204
231
  }
@@ -375,7 +402,7 @@ BETTER_AUTH_URL=http://localhost:3000
375
402
  __dirname,
376
403
  "./template/proxy/proxy.ts"
377
404
  );
378
- const proxyDestinationDir = import_path2.default.join(projectDir, srcFolder);
405
+ const proxyDestinationDir = import_path2.default.join(projectDir);
379
406
  const proxyDestinationPath = import_path2.default.join(proxyDestinationDir, "proxy.ts");
380
407
  import_fs2.default.copyFileSync(proxyTemplatePath, proxyDestinationPath);
381
408
  const gitignorePath = import_path2.default.join(projectDir, ".gitignore");
@@ -395,12 +422,22 @@ BETTER_AUTH_URL=http://localhost:3000
395
422
  await authUiRun({
396
423
  folder: srcFolder,
397
424
  packageJson: packageJson2,
398
- cmd
425
+ cmd,
426
+ database: "prisma"
399
427
  });
400
428
  } else {
429
+ console.log(import_chalk2.default.green("\nCompleted installation successfully"));
430
+ console.log(import_chalk2.default.cyan("\nInstall Package:"));
431
+ console.log(import_chalk2.default.white(`\u2022 prisma ${database} schema
432
+ \u2022 better-auth`));
433
+ console.log(import_chalk2.default.cyan("\nFiles created:"));
401
434
  console.log(
402
- import_chalk2.default.green(
403
- "\nPrisma setup completed successfully and better-auth installed\n"
435
+ import_chalk2.default.white(
436
+ `${CreateFolder({ srcFolder, destFolder: "lib/auth.ts" })}
437
+ ${CreateFolder({ srcFolder, destFolder: "lib/auth-client.ts" })}
438
+ ${CreateFolder({ srcFolder, destFolder: "app/api/auth/[...all]/route.ts" })}
439
+ ${CreateFolder({ srcFolder, destFolder: "proxy.ts" })}
440
+ `
404
441
  )
405
442
  );
406
443
  }
@@ -560,19 +597,29 @@ BETTER_AUTH_URL=http://localhost:3000
560
597
  __dirname,
561
598
  "./template/proxy/proxy.ts"
562
599
  );
563
- const proxyDestinationDir = import_path3.default.join(projectDir, srcFolder);
600
+ const proxyDestinationDir = import_path3.default.join(projectDir);
564
601
  const proxyDestinationPath = import_path3.default.join(proxyDestinationDir, "proxy.ts");
565
602
  import_fs3.default.copyFileSync(proxyTemplatePath, proxyDestinationPath);
566
603
  if (authUi) {
567
604
  await authUiRun({
568
605
  folder: srcFolder,
569
606
  packageJson: packageJson2,
570
- cmd
607
+ cmd,
608
+ database: "drizzle"
571
609
  });
572
610
  } else {
611
+ console.log(import_chalk3.default.green("\nCompleted installation successfully"));
612
+ console.log(import_chalk3.default.cyan("\nInstall Package:"));
613
+ console.log(import_chalk3.default.white(`\u2022 drizzle schema
614
+ \u2022 better-auth`));
615
+ console.log(import_chalk3.default.cyan("\nFiles created:"));
573
616
  console.log(
574
- import_chalk3.default.green(
575
- "\nDrizzle setup completed successfully and better-auth installed\n"
617
+ import_chalk3.default.white(
618
+ `${CreateFolder({ srcFolder, destFolder: "lib/auth.ts" })}
619
+ ${CreateFolder({ srcFolder, destFolder: "lib/auth-client.ts" })}
620
+ ${CreateFolder({ srcFolder, destFolder: "app/api/auth/[...all]/route.ts" })}
621
+ ${CreateFolder({ srcFolder, destFolder: "proxy.ts" })}
622
+ `
576
623
  )
577
624
  );
578
625
  }
@@ -581,7 +628,7 @@ BETTER_AUTH_URL=http://localhost:3000
581
628
  }
582
629
  };
583
630
 
584
- // script/prismaRunTanstackState.ts
631
+ // script/prismaRunTanstackStart.ts
585
632
  var import_chalk5 = __toESM(require("chalk"), 1);
586
633
  var import_path5 = __toESM(require("path"), 1);
587
634
  var import_url5 = require("url");
@@ -604,7 +651,8 @@ var shadcnComponents2 = [
604
651
  ];
605
652
  var authUiTanstackState = async ({
606
653
  packageJson: packageJson2,
607
- cmd
654
+ cmd,
655
+ database
608
656
  }) => {
609
657
  try {
610
658
  const projectDir = process.cwd();
@@ -636,7 +684,7 @@ var authUiTanstackState = async ({
636
684
  const srcPath = import_path4.default.join(projectDir, "src");
637
685
  const componentPath = import_path4.default.resolve(
638
686
  __dirname,
639
- "./template/TanstackState/components"
687
+ "./template/TanstackStart/components"
640
688
  );
641
689
  const authversePathComponents = import_path4.default.join(
642
690
  srcPath,
@@ -660,7 +708,7 @@ var authUiTanstackState = async ({
660
708
  }
661
709
  const templateRoutesPage = import_path4.default.resolve(
662
710
  __dirname,
663
- "./template/TanstackState/routes/auth"
711
+ "./template/TanstackStart/routes/auth"
664
712
  );
665
713
  import_fs4.default.copyFileSync(
666
714
  `${templateRoutesPage}/login.tsx`,
@@ -685,15 +733,33 @@ ${rootContent}`;
685
733
  }
686
734
  import_fs4.default.writeFileSync(rootPath, rootContent, "utf-8");
687
735
  }
688
- console.log(import_chalk4.default.green("\nSetup completed!\n"));
736
+ console.log(import_chalk4.default.green("\nCompleted installation successfully"));
737
+ console.log(import_chalk4.default.cyan("\nInstall Package:"));
738
+ console.log(import_chalk4.default.white(`\u2022 ${database} schema
739
+ \u2022 better-auth`));
740
+ console.log(import_chalk4.default.cyan("\nFiles created:"));
741
+ console.log(
742
+ import_chalk4.default.white(
743
+ `\u2022 src/lib/auth.ts
744
+ \u2022 src/lib/auth-client.ts
745
+ \u2022 src/app/api/auth/[...all]/route.ts
746
+ \u2022 src/proxy.ts
747
+ \u2022 src/components/authverse/LoginComponent.tsx
748
+ \u2022 src/components/authverse/SingUpComponent.tsx
749
+ \u2022 src/app/auth/layout.tsx
750
+ \u2022 src/app/auth/login/page.tsx
751
+ \u2022 src/app/auth/signup/page.tsx
752
+ `
753
+ )
754
+ );
689
755
  } catch (error) {
690
756
  console.log(import_chalk4.default.red("Auth Ui Tanstack State Error: ", error));
691
757
  }
692
758
  };
693
759
 
694
- // script/prismaRunTanstackState.ts
760
+ // script/prismaRunTanstackStart.ts
695
761
  var import_meta5 = {};
696
- var prismaRunTanstackState = async ({
762
+ var prismaRunTanstackStart = async ({
697
763
  authUi,
698
764
  database,
699
765
  cmd
@@ -777,7 +843,7 @@ BETTER_AUTH_URL=http://localhost:3000
777
843
  }
778
844
  const authTemplatePath = import_path5.default.resolve(
779
845
  __dirname,
780
- `./template/TanstackState/lib/${database}/auth.ts`
846
+ `./template/TanstackStart/lib/${database}/auth.ts`
781
847
  );
782
848
  const authDestinationPath = import_path5.default.join(libPath, "auth.ts");
783
849
  import_fs5.default.copyFileSync(authTemplatePath, authDestinationPath);
@@ -793,13 +859,13 @@ BETTER_AUTH_URL=http://localhost:3000
793
859
  }
794
860
  const authMiddlewareTemplatePath = import_path5.default.resolve(
795
861
  __dirname,
796
- `./template/TanstackState/middleware/auth.ts`
862
+ `./template/TanstackStart/middleware/auth.ts`
797
863
  );
798
864
  const authMiddlewareDestinationPath = import_path5.default.join(middlewarePath, "auth.ts");
799
865
  import_fs5.default.copyFileSync(authMiddlewareTemplatePath, authMiddlewareDestinationPath);
800
866
  const fileRouteTemplatePath = import_path5.default.resolve(
801
867
  __dirname,
802
- `./template/TanstackState/routes/$.ts`
868
+ `./template/TanstackStart/routes/$.ts`
803
869
  );
804
870
  const fileRouteDestinationPath = import_path5.default.join(
805
871
  srcPath,
@@ -815,12 +881,22 @@ BETTER_AUTH_URL=http://localhost:3000
815
881
  if (authUi) {
816
882
  await authUiTanstackState({
817
883
  packageJson: packageJson2,
818
- cmd
884
+ cmd,
885
+ database: "prisma"
819
886
  });
820
887
  } else {
888
+ console.log(import_chalk5.default.green("\nCompleted installation successfully"));
889
+ console.log(import_chalk5.default.cyan("\nInstall Package:"));
890
+ console.log(import_chalk5.default.white(`\u2022 prisma ${database} schema
891
+ \u2022 better-auth`));
892
+ console.log(import_chalk5.default.cyan("\nFiles created:"));
821
893
  console.log(
822
- import_chalk5.default.green(
823
- "\nPrisma setup completed successfully and better-auth installed\n"
894
+ import_chalk5.default.white(
895
+ `\u2022 src/lib/auth.ts
896
+ \u2022 src/lib/auth-client.ts
897
+ \u2022 src/app/api/auth/[...all]/route.ts
898
+ \u2022 src/proxy.ts
899
+ `
824
900
  )
825
901
  );
826
902
  }
@@ -829,13 +905,13 @@ BETTER_AUTH_URL=http://localhost:3000
829
905
  }
830
906
  };
831
907
 
832
- // script/drizzleRunTanstackState.ts
908
+ // script/drizzleRunTanstackStart.ts
833
909
  var import_chalk6 = __toESM(require("chalk"), 1);
834
910
  var import_path6 = __toESM(require("path"), 1);
835
911
  var import_fs6 = __toESM(require("fs"), 1);
836
912
  var import_url6 = require("url");
837
913
  var import_meta6 = {};
838
- var drizzleRunTanstackState = async ({
914
+ var drizzleRunTanstackStart = async ({
839
915
  authUi,
840
916
  cmd
841
917
  }) => {
@@ -877,7 +953,7 @@ BETTER_AUTH_URL=http://localhost:3000
877
953
  }
878
954
  const authTemplatePath = import_path6.default.resolve(
879
955
  __dirname,
880
- "./template/TanstackState/lib/auth-drizzle.ts"
956
+ "./template/TanstackStart/lib/auth-drizzle.ts"
881
957
  );
882
958
  const authDestinationPath = import_path6.default.join(libPath, "auth.ts");
883
959
  import_fs6.default.copyFileSync(authTemplatePath, authDestinationPath);
@@ -911,13 +987,13 @@ BETTER_AUTH_URL=http://localhost:3000
911
987
  }
912
988
  const authMiddlewareTemplatePath = import_path6.default.resolve(
913
989
  __dirname,
914
- `./template/TanstackState/middleware/auth.ts`
990
+ `./template/TanstackStart/middleware/auth.ts`
915
991
  );
916
992
  const authMiddlewareDestinationPath = import_path6.default.join(middlewarePath, "auth.ts");
917
993
  import_fs6.default.copyFileSync(authMiddlewareTemplatePath, authMiddlewareDestinationPath);
918
994
  const fileRouteTemplatePath = import_path6.default.resolve(
919
995
  __dirname,
920
- `./template/TanstackState/routes/$.ts`
996
+ `./template/TanstackStart/routes/$.ts`
921
997
  );
922
998
  const fileRouteDestinationPath = import_path6.default.join(
923
999
  srcPath,
@@ -933,12 +1009,22 @@ BETTER_AUTH_URL=http://localhost:3000
933
1009
  if (authUi) {
934
1010
  await authUiTanstackState({
935
1011
  packageJson: packageJson2,
936
- cmd
1012
+ cmd,
1013
+ database: "drizzle"
937
1014
  });
938
1015
  } else {
1016
+ console.log(import_chalk6.default.green("\nCompleted installation successfully"));
1017
+ console.log(import_chalk6.default.cyan("\nInstall Package:"));
1018
+ console.log(import_chalk6.default.white(`\u2022 drizzle schema
1019
+ \u2022 better-auth`));
1020
+ console.log(import_chalk6.default.cyan("\nFiles created:"));
939
1021
  console.log(
940
- import_chalk6.default.green(
941
- "\nDrizzle setup completed successfully and better-auth installed\n"
1022
+ import_chalk6.default.white(
1023
+ `\u2022 src/lib/auth.ts
1024
+ \u2022 src/lib/auth-client.ts
1025
+ \u2022 src/app/api/auth/[...all]/route.ts
1026
+ \u2022 src/proxy.ts
1027
+ `
942
1028
  )
943
1029
  );
944
1030
  }
@@ -971,7 +1057,7 @@ var getFramework = async () => {
971
1057
  const hasTanstackState = packageJson2?.devDependencies?.["@tanstack/devtools-vite"] || packageJson2?.devDependencies?.["@tanstack/eslint-config"] || packageJson2?.devDependencies?.["@tanstack/react-start"];
972
1058
  if (hasTanstackState) {
973
1059
  return {
974
- framework: "tanstack state",
1060
+ framework: "tanstack start",
975
1061
  error: null
976
1062
  };
977
1063
  }
@@ -1024,15 +1110,15 @@ var initAnswer = async () => {
1024
1110
  cmd: false
1025
1111
  });
1026
1112
  }
1027
- if (framework === "tanstack state" && answers.orm === "Prisma") {
1028
- await prismaRunTanstackState({
1113
+ if (framework === "tanstack start" && answers.orm === "Prisma") {
1114
+ await prismaRunTanstackStart({
1029
1115
  authUi: answers.authUi,
1030
1116
  database: answers.database,
1031
1117
  cmd: false
1032
1118
  });
1033
1119
  }
1034
- if (framework === "tanstack state" && answers.orm === "Drizzle") {
1035
- await drizzleRunTanstackState({
1120
+ if (framework === "tanstack start" && answers.orm === "Drizzle") {
1121
+ await drizzleRunTanstackStart({
1036
1122
  authUi: answers.authUi,
1037
1123
  cmd: false
1038
1124
  });
@@ -1149,7 +1235,13 @@ GOOGLE_CLIENT_SECRET=
1149
1235
  if (import_fs8.default.existsSync(componentTemplate)) {
1150
1236
  import_fs8.default.copyFileSync(componentTemplate, componentDest);
1151
1237
  }
1152
- console.log(import_chalk8.default.green("Google provider added & merged successfully"));
1238
+ console.log(import_chalk8.default.green("Google provider added & merged successfully\n"));
1239
+ console.log(
1240
+ import_chalk8.default.white(
1241
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/GoogleOAuthButton.tsx" })}
1242
+ `
1243
+ )
1244
+ );
1153
1245
  } catch (error) {
1154
1246
  console.log(import_chalk8.default.red("googleRun error:"), error);
1155
1247
  }
@@ -1259,19 +1351,25 @@ GITHUB_CLIENT_SECRET=
1259
1351
  if (import_fs9.default.existsSync(componentTemplate)) {
1260
1352
  import_fs9.default.copyFileSync(componentTemplate, componentDest);
1261
1353
  }
1262
- console.log(import_chalk9.default.green("GitHub provider added & merged successfully"));
1354
+ console.log(import_chalk9.default.green("GitHub provider added & merged successfully\n"));
1355
+ console.log(
1356
+ import_chalk9.default.white(
1357
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/GithubOAuthButton.tsx" })}
1358
+ `
1359
+ )
1360
+ );
1263
1361
  } catch (error) {
1264
1362
  console.log(import_chalk9.default.red("githubRun error:"), error);
1265
1363
  }
1266
1364
  };
1267
1365
 
1268
- // oauth/googleTanstackState.ts
1366
+ // oauth/googleTanstackStart.ts
1269
1367
  var import_chalk10 = __toESM(require("chalk"), 1);
1270
1368
  var import_fs10 = __toESM(require("fs"), 1);
1271
1369
  var import_path10 = __toESM(require("path"), 1);
1272
1370
  var import_url9 = require("url");
1273
1371
  var import_meta9 = {};
1274
- var googleTanstackState = async () => {
1372
+ var googleTanstackStart = async () => {
1275
1373
  try {
1276
1374
  const __filename = (0, import_url9.fileURLToPath)(import_meta9.url);
1277
1375
  const __dirname = import_path10.default.dirname(__filename);
@@ -1353,7 +1451,7 @@ GOOGLE_CLIENT_SECRET=
1353
1451
  }
1354
1452
  const componentTemplate = import_path10.default.resolve(
1355
1453
  __dirname,
1356
- "./template/TanstackState/components/GoogleOAuthButton.tsx"
1454
+ "./template/TanstackStart/components/GoogleOAuthButton.tsx"
1357
1455
  );
1358
1456
  const componentsDir = import_path10.default.join(srcPath, "components", "authverse");
1359
1457
  if (!import_fs10.default.existsSync(componentsDir)) {
@@ -1363,19 +1461,22 @@ GOOGLE_CLIENT_SECRET=
1363
1461
  if (import_fs10.default.existsSync(componentTemplate)) {
1364
1462
  import_fs10.default.copyFileSync(componentTemplate, componentDest);
1365
1463
  }
1366
- console.log(import_chalk10.default.green("Google provider added & merged successfully"));
1464
+ console.log(import_chalk10.default.green("Google provider added & merged successfully\n"));
1465
+ console.log(
1466
+ import_chalk10.default.white("\u2022 src/components/authverse/GoogleOAuthButton.tsx")
1467
+ );
1367
1468
  } catch (error) {
1368
1469
  console.log(import_chalk10.default.red("googleRunTanstackState error:"), error);
1369
1470
  }
1370
1471
  };
1371
1472
 
1372
- // oauth/githubTanstackState.ts
1473
+ // oauth/githubTanstackStart.ts
1373
1474
  var import_chalk11 = __toESM(require("chalk"), 1);
1374
1475
  var import_fs11 = __toESM(require("fs"), 1);
1375
1476
  var import_path11 = __toESM(require("path"), 1);
1376
1477
  var import_url10 = require("url");
1377
1478
  var import_meta10 = {};
1378
- var githubTanstackState = async () => {
1479
+ var githubTanstackStart = async () => {
1379
1480
  try {
1380
1481
  const __filename = (0, import_url10.fileURLToPath)(import_meta10.url);
1381
1482
  const __dirname = import_path11.default.dirname(__filename);
@@ -1457,7 +1558,7 @@ GITHUB_CLIENT_SECRET=
1457
1558
  }
1458
1559
  const componentTemplate = import_path11.default.resolve(
1459
1560
  __dirname,
1460
- "./template/TanstackState/components/GithubOAuthButton.tsx"
1561
+ "./template/TanstackStart/components/GithubOAuthButton.tsx"
1461
1562
  );
1462
1563
  const componentsDir = import_path11.default.join(srcPath, "components", "authverse");
1463
1564
  if (!import_fs11.default.existsSync(componentsDir)) {
@@ -1467,7 +1568,10 @@ GITHUB_CLIENT_SECRET=
1467
1568
  if (import_fs11.default.existsSync(componentTemplate)) {
1468
1569
  import_fs11.default.copyFileSync(componentTemplate, componentDest);
1469
1570
  }
1470
- console.log(import_chalk11.default.green("Github provider added & merged successfully"));
1571
+ console.log(import_chalk11.default.green("Github provider added & merged successfully\n"));
1572
+ console.log(
1573
+ import_chalk11.default.white("\u2022 src/components/authverse/GithubOAuthButton.tsx")
1574
+ );
1471
1575
  } catch (error) {
1472
1576
  console.log(import_chalk11.default.red("githubRunTanstackState error:"), error);
1473
1577
  }
@@ -1577,19 +1681,25 @@ FACEBOOK_CLIENT_SECRET=
1577
1681
  if (import_fs12.default.existsSync(componentTemplate)) {
1578
1682
  import_fs12.default.copyFileSync(componentTemplate, componentDest);
1579
1683
  }
1580
- console.log(import_chalk12.default.green("Facebook provider added & merged successfully"));
1684
+ console.log(import_chalk12.default.green("Facebook provider added & merged successfully\n"));
1685
+ console.log(
1686
+ import_chalk12.default.white(
1687
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/FacebookOAuthButton.tsx" })}
1688
+ `
1689
+ )
1690
+ );
1581
1691
  } catch (error) {
1582
1692
  console.log(import_chalk12.default.red("facebookRun error:"), error);
1583
1693
  }
1584
1694
  };
1585
1695
 
1586
- // oauth/facebookTanstackState.ts
1696
+ // oauth/facebookTanstackStart.ts
1587
1697
  var import_chalk13 = __toESM(require("chalk"), 1);
1588
1698
  var import_fs13 = __toESM(require("fs"), 1);
1589
1699
  var import_path13 = __toESM(require("path"), 1);
1590
1700
  var import_url12 = require("url");
1591
1701
  var import_meta12 = {};
1592
- var facebookTanstackState = async () => {
1702
+ var facebookTanstackStart = async () => {
1593
1703
  try {
1594
1704
  const __filename = (0, import_url12.fileURLToPath)(import_meta12.url);
1595
1705
  const __dirname = import_path13.default.dirname(__filename);
@@ -1671,7 +1781,7 @@ FACEBOOK_CLIENT_SECRET=
1671
1781
  }
1672
1782
  const componentTemplate = import_path13.default.resolve(
1673
1783
  __dirname,
1674
- "./template/TanstackState/components/FacebookOAuthButton.tsx"
1784
+ "./template/TanstackStart/components/FacebookOAuthButton.tsx"
1675
1785
  );
1676
1786
  const componentsDir = import_path13.default.join(srcPath, "components", "authverse");
1677
1787
  if (!import_fs13.default.existsSync(componentsDir)) {
@@ -1681,7 +1791,10 @@ FACEBOOK_CLIENT_SECRET=
1681
1791
  if (import_fs13.default.existsSync(componentTemplate)) {
1682
1792
  import_fs13.default.copyFileSync(componentTemplate, componentDest);
1683
1793
  }
1684
- console.log(import_chalk13.default.green("Facebook provider added & merged successfully"));
1794
+ console.log(import_chalk13.default.green("Facebook provider added & merged successfully\n"));
1795
+ console.log(
1796
+ import_chalk13.default.white("\u2022 src/components/authverse/FacebookOAuthButton.tsx")
1797
+ );
1685
1798
  } catch (error) {
1686
1799
  console.log(import_chalk13.default.red("facebookRunTanstackState error:"), error);
1687
1800
  }
@@ -1791,19 +1904,25 @@ LINKEDIN_CLIENT_SECRET=
1791
1904
  if (import_fs14.default.existsSync(componentTemplate)) {
1792
1905
  import_fs14.default.copyFileSync(componentTemplate, componentDest);
1793
1906
  }
1794
- console.log(import_chalk14.default.green("LinkedIn provider added & merged successfully"));
1907
+ console.log(import_chalk14.default.green("LinkedIn provider added & merged successfully\n"));
1908
+ console.log(
1909
+ import_chalk14.default.white(
1910
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/LinkedInOAuthButton.tsx" })}
1911
+ `
1912
+ )
1913
+ );
1795
1914
  } catch (error) {
1796
1915
  console.log(import_chalk14.default.red("LinkedIn error:"), error);
1797
1916
  }
1798
1917
  };
1799
1918
 
1800
- // oauth/LinkedInTanstackState.ts
1919
+ // oauth/LinkedInTanstackStart.ts
1801
1920
  var import_chalk15 = __toESM(require("chalk"), 1);
1802
1921
  var import_fs15 = __toESM(require("fs"), 1);
1803
1922
  var import_path15 = __toESM(require("path"), 1);
1804
1923
  var import_url14 = require("url");
1805
1924
  var import_meta14 = {};
1806
- var LinkedInTanstackState = async () => {
1925
+ var LinkedInTanstackStart = async () => {
1807
1926
  try {
1808
1927
  const __filename = (0, import_url14.fileURLToPath)(import_meta14.url);
1809
1928
  const __dirname = import_path15.default.dirname(__filename);
@@ -1885,7 +2004,7 @@ LINKEDIN_CLIENT_SECRET=
1885
2004
  }
1886
2005
  const componentTemplate = import_path15.default.resolve(
1887
2006
  __dirname,
1888
- "./template/TanstackState/components/LinkedInOAuthButton.tsx"
2007
+ "./template/TanstackStart/components/LinkedInOAuthButton.tsx"
1889
2008
  );
1890
2009
  const componentsDir = import_path15.default.join(srcPath, "components", "authverse");
1891
2010
  if (!import_fs15.default.existsSync(componentsDir)) {
@@ -1895,7 +2014,10 @@ LINKEDIN_CLIENT_SECRET=
1895
2014
  if (import_fs15.default.existsSync(componentTemplate)) {
1896
2015
  import_fs15.default.copyFileSync(componentTemplate, componentDest);
1897
2016
  }
1898
- console.log(import_chalk15.default.green("LinkedIn provider added & merged successfully"));
2017
+ console.log(import_chalk15.default.green("LinkedIn provider added & merged successfully\n"));
2018
+ console.log(
2019
+ import_chalk15.default.white("\u2022 src/components/authverse/LinkedInOAuthButton.tsx")
2020
+ );
1899
2021
  } catch (error) {
1900
2022
  console.log(import_chalk15.default.red("LinkedInTanstackState error:"), error);
1901
2023
  }
@@ -2005,19 +2127,25 @@ TWITTER_CLIENT_SECRET=
2005
2127
  if (import_fs16.default.existsSync(componentTemplate)) {
2006
2128
  import_fs16.default.copyFileSync(componentTemplate, componentDest);
2007
2129
  }
2008
- console.log(import_chalk16.default.green("twitter provider added & merged successfully"));
2130
+ console.log(import_chalk16.default.green("Twitter provider added & merged successfully\n"));
2131
+ console.log(
2132
+ import_chalk16.default.white(
2133
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/TwitterOAuthButton.tsx" })}
2134
+ `
2135
+ )
2136
+ );
2009
2137
  } catch (error) {
2010
2138
  console.log(import_chalk16.default.red("twitter error:"), error);
2011
2139
  }
2012
2140
  };
2013
2141
 
2014
- // oauth/twitterTanstackState.ts
2142
+ // oauth/twitterTanstackStart.ts
2015
2143
  var import_chalk17 = __toESM(require("chalk"), 1);
2016
2144
  var import_fs17 = __toESM(require("fs"), 1);
2017
2145
  var import_path17 = __toESM(require("path"), 1);
2018
2146
  var import_url16 = require("url");
2019
2147
  var import_meta16 = {};
2020
- var twitterTanstackState = async () => {
2148
+ var twitterTanstackStart = async () => {
2021
2149
  try {
2022
2150
  const __filename = (0, import_url16.fileURLToPath)(import_meta16.url);
2023
2151
  const __dirname = import_path17.default.dirname(__filename);
@@ -2099,7 +2227,7 @@ TWITTER_CLIENT_SECRET=
2099
2227
  }
2100
2228
  const componentTemplate = import_path17.default.resolve(
2101
2229
  __dirname,
2102
- "./template/TanstackState/components/twitterOAuthButton.tsx"
2230
+ "./template/TanstackStart/components/twitterOAuthButton.tsx"
2103
2231
  );
2104
2232
  const componentsDir = import_path17.default.join(srcPath, "components", "authverse");
2105
2233
  if (!import_fs17.default.existsSync(componentsDir)) {
@@ -2109,7 +2237,10 @@ TWITTER_CLIENT_SECRET=
2109
2237
  if (import_fs17.default.existsSync(componentTemplate)) {
2110
2238
  import_fs17.default.copyFileSync(componentTemplate, componentDest);
2111
2239
  }
2112
- console.log(import_chalk17.default.green("twitter provider added & merged successfully"));
2240
+ console.log(import_chalk17.default.green("twitter provider added & merged successfully\n"));
2241
+ console.log(
2242
+ import_chalk17.default.white("\u2022 src/components/authverse/twitterOAuthButton.tsx")
2243
+ );
2113
2244
  } catch (error) {
2114
2245
  console.log(import_chalk17.default.red("twitter tanstack state error:"), error);
2115
2246
  }
@@ -2236,19 +2367,25 @@ APPLE_BUNDLE_ID=
2236
2367
  if (import_fs18.default.existsSync(componentTemplate)) {
2237
2368
  import_fs18.default.copyFileSync(componentTemplate, componentDest);
2238
2369
  }
2239
- console.log(import_chalk18.default.green("Apple provider added & merged successfully"));
2370
+ console.log(import_chalk18.default.green("Apple provider added & merged successfully\n"));
2371
+ console.log(
2372
+ import_chalk18.default.white(
2373
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/AppleOAuthButton.tsx" })}
2374
+ `
2375
+ )
2376
+ );
2240
2377
  } catch (error) {
2241
2378
  console.log(import_chalk18.default.red("apple next error:"), error);
2242
2379
  }
2243
2380
  };
2244
2381
 
2245
- // oauth/AppleTanstackState.ts
2382
+ // oauth/AppleTanstackStart.ts
2246
2383
  var import_chalk19 = __toESM(require("chalk"), 1);
2247
2384
  var import_fs19 = __toESM(require("fs"), 1);
2248
2385
  var import_path19 = __toESM(require("path"), 1);
2249
2386
  var import_url18 = require("url");
2250
2387
  var import_meta18 = {};
2251
- var AppleTanstackState = async () => {
2388
+ var AppleTanstackStart = async () => {
2252
2389
  try {
2253
2390
  const __filename = (0, import_url18.fileURLToPath)(import_meta18.url);
2254
2391
  const __dirname = import_path19.default.dirname(__filename);
@@ -2347,7 +2484,7 @@ APPLE_BUNDLE_ID=
2347
2484
  }
2348
2485
  const componentTemplate = import_path19.default.resolve(
2349
2486
  __dirname,
2350
- "./template/TanstackState/components/AppleOAuthButton.tsx"
2487
+ "./template/TanstackStart/components/AppleOAuthButton.tsx"
2351
2488
  );
2352
2489
  const componentsDir = import_path19.default.join(srcPath, "components", "authverse");
2353
2490
  if (!import_fs19.default.existsSync(componentsDir)) {
@@ -2357,7 +2494,8 @@ APPLE_BUNDLE_ID=
2357
2494
  if (import_fs19.default.existsSync(componentTemplate)) {
2358
2495
  import_fs19.default.copyFileSync(componentTemplate, componentDest);
2359
2496
  }
2360
- console.log(import_chalk19.default.green("Apple provider added & merged successfully"));
2497
+ console.log(import_chalk19.default.green("Apple provider added & merged successfully\n"));
2498
+ console.log(import_chalk19.default.white("\u2022 src/components/authverse/AppleOAuthButton.tsx"));
2361
2499
  } catch (error) {
2362
2500
  console.log(import_chalk19.default.red("apple tanstack state error:"), error);
2363
2501
  }
@@ -2376,30 +2514,30 @@ var Oauth = async ({ oauth }) => {
2376
2514
  } else if (framework === "Next js" && oauth == "github") {
2377
2515
  await githubNext();
2378
2516
  }
2379
- if (framework === "tanstack state" && oauth == "google") {
2380
- await googleTanstackState();
2381
- } else if (framework === "tanstack state" && oauth == "github") {
2382
- await githubTanstackState();
2517
+ if (framework === "tanstack start" && oauth == "google") {
2518
+ await googleTanstackStart();
2519
+ } else if (framework === "tanstack start" && oauth == "github") {
2520
+ await githubTanstackStart();
2383
2521
  }
2384
2522
  if (framework === "Next js" && oauth == "facebook") {
2385
2523
  await facebookNext();
2386
- } else if (framework === "tanstack state" && oauth == "facebook") {
2387
- await facebookTanstackState();
2524
+ } else if (framework === "tanstack start" && oauth == "facebook") {
2525
+ await facebookTanstackStart();
2388
2526
  }
2389
2527
  if (framework === "Next js" && oauth === "LinkedIn") {
2390
2528
  await LinkedInNext();
2391
- } else if (framework === "tanstack state" && oauth === "LinkedIn") {
2392
- await LinkedInTanstackState();
2529
+ } else if (framework === "tanstack start" && oauth === "LinkedIn") {
2530
+ await LinkedInTanstackStart();
2393
2531
  }
2394
2532
  if (framework === "Next js" && oauth === "twitter") {
2395
2533
  await twitterNext();
2396
- } else if (framework === "tanstack state" && oauth === "twitter") {
2397
- await twitterTanstackState();
2534
+ } else if (framework === "tanstack start" && oauth === "twitter") {
2535
+ await twitterTanstackStart();
2398
2536
  }
2399
2537
  if (framework === "Next js" && oauth === "apple") {
2400
2538
  await AppleNext();
2401
- } else if (framework === "tanstack state" && oauth === "apple") {
2402
- await AppleTanstackState();
2539
+ } else if (framework === "tanstack start" && oauth === "apple") {
2540
+ await AppleTanstackStart();
2403
2541
  }
2404
2542
  if (oauth !== "google" && oauth !== "github" && oauth !== "facebook" && oauth !== "LinkedIn" && oauth !== "twitter" && oauth !== "apple") {
2405
2543
  console.log(import_chalk20.default.red("Invalid oauth provider"));
@@ -2473,18 +2611,29 @@ GMAIL_PASSWORD=`);
2473
2611
  }
2474
2612
  const libDestinationPath = import_path20.default.join(libPath, "email.ts");
2475
2613
  import_fs20.default.copyFileSync(templatePath, libDestinationPath);
2614
+ console.log(import_chalk21.default.green("\nCompleted installation successfully"));
2615
+ console.log(import_chalk21.default.cyan("\nInstall Package:"));
2616
+ console.log(import_chalk21.default.white(`\u2022 nodemailer
2617
+ \u2022 @react-email/components`));
2618
+ console.log(import_chalk21.default.cyan("\nFiles created:"));
2619
+ console.log(
2620
+ import_chalk21.default.white(
2621
+ `${CreateFolder({ srcFolder, destFolder: "lib/email.ts" })}
2622
+ `
2623
+ )
2624
+ );
2476
2625
  } catch (error) {
2477
2626
  console.log(import_chalk21.default.red(error));
2478
2627
  }
2479
2628
  };
2480
2629
 
2481
- // email/gmailRunTanstackState.ts
2630
+ // email/gmailRunTanstackStart.ts
2482
2631
  var import_chalk22 = __toESM(require("chalk"), 1);
2483
2632
  var import_path21 = __toESM(require("path"), 1);
2484
2633
  var import_fs21 = __toESM(require("fs"), 1);
2485
2634
  var import_url20 = require("url");
2486
2635
  var import_meta20 = {};
2487
- var gmailRunTanstackState = async () => {
2636
+ var gmailRunTanstackStart = async () => {
2488
2637
  try {
2489
2638
  const projectDir = process.cwd();
2490
2639
  const packageJsonPath = import_path21.default.join(projectDir, "package.json");
@@ -2529,6 +2678,12 @@ GMAIL_PASSWORD=`);
2529
2678
  }
2530
2679
  const libDestinationPath = import_path21.default.join(libPath, "email.ts");
2531
2680
  import_fs21.default.copyFileSync(templatePath, libDestinationPath);
2681
+ console.log(import_chalk22.default.green("\nCompleted installation successfully"));
2682
+ console.log(import_chalk22.default.cyan("\nInstall Package:"));
2683
+ console.log(import_chalk22.default.white(`\u2022 nodemailer
2684
+ \u2022 @react-email/components`));
2685
+ console.log(import_chalk22.default.cyan("\nFiles created:"));
2686
+ console.log(import_chalk22.default.white("\u2022 src/lib/email.ts\n"));
2532
2687
  } catch (error) {
2533
2688
  console.log(import_chalk22.default.red(error));
2534
2689
  }
@@ -2586,18 +2741,29 @@ AWS_SES_FROM=`);
2586
2741
  }
2587
2742
  const libDestinationPath = import_path22.default.join(libPath, "email.ts");
2588
2743
  import_fs22.default.copyFileSync(templatePath, libDestinationPath);
2744
+ console.log(import_chalk23.default.green("\nCompleted installation successfully"));
2745
+ console.log(import_chalk23.default.cyan("\nInstall Package:"));
2746
+ console.log(import_chalk23.default.white(`\u2022 nodemailer
2747
+ \u2022 @react-email/components`));
2748
+ console.log(import_chalk23.default.cyan("\nFiles created:"));
2749
+ console.log(
2750
+ import_chalk23.default.white(
2751
+ `${CreateFolder({ srcFolder, destFolder: "lib/email.ts" })}
2752
+ `
2753
+ )
2754
+ );
2589
2755
  } catch (error) {
2590
2756
  console.log(import_chalk23.default.red(error));
2591
2757
  }
2592
2758
  };
2593
2759
 
2594
- // email/awsSesRunTanstackState.ts
2760
+ // email/awsSesRunTanstackStart.ts
2595
2761
  var import_chalk24 = __toESM(require("chalk"), 1);
2596
2762
  var import_path23 = __toESM(require("path"), 1);
2597
2763
  var import_fs23 = __toESM(require("fs"), 1);
2598
2764
  var import_url22 = require("url");
2599
2765
  var import_meta22 = {};
2600
- var awsSesRunTanstackState = async () => {
2766
+ var awsSesRunTanstackStart = async () => {
2601
2767
  try {
2602
2768
  const projectDir = process.cwd();
2603
2769
  const packageJsonPath = import_path23.default.join(projectDir, "package.json");
@@ -2642,6 +2808,12 @@ AWS_SES_FROM=`);
2642
2808
  }
2643
2809
  const libDestinationPath = import_path23.default.join(libPath, "email.ts");
2644
2810
  import_fs23.default.copyFileSync(templatePath, libDestinationPath);
2811
+ console.log(import_chalk24.default.green("\nCompleted installation successfully"));
2812
+ console.log(import_chalk24.default.cyan("\nInstall Package:"));
2813
+ console.log(import_chalk24.default.white(`\u2022 nodemailer
2814
+ \u2022 @react-email/components`));
2815
+ console.log(import_chalk24.default.cyan("\nFiles created:"));
2816
+ console.log(import_chalk24.default.white("\u2022 src/lib/email.ts\n"));
2645
2817
  } catch (error) {
2646
2818
  console.log(import_chalk24.default.red(error));
2647
2819
  }
@@ -2692,18 +2864,29 @@ EMAIL_SENDER_ADDRESS=`);
2692
2864
  }
2693
2865
  const libDestinationPath = import_path24.default.join(libPath, "email.ts");
2694
2866
  import_fs24.default.copyFileSync(templatePath, libDestinationPath);
2867
+ console.log(import_chalk25.default.green("\nCompleted installation successfully"));
2868
+ console.log(import_chalk25.default.cyan("\nInstall Package:"));
2869
+ console.log(import_chalk25.default.white(`\u2022 resend
2870
+ \u2022 @react-email/components`));
2871
+ console.log(import_chalk25.default.cyan("\nFiles created:"));
2872
+ console.log(
2873
+ import_chalk25.default.white(
2874
+ `${CreateFolder({ srcFolder, destFolder: "lib/email.ts" })}
2875
+ `
2876
+ )
2877
+ );
2695
2878
  } catch (error) {
2696
2879
  console.log(import_chalk25.default.red(error));
2697
2880
  }
2698
2881
  };
2699
2882
 
2700
- // email/resendRunTanstackState.ts
2883
+ // email/resendRunTanstackStart.ts
2701
2884
  var import_chalk26 = __toESM(require("chalk"), 1);
2702
2885
  var import_path25 = __toESM(require("path"), 1);
2703
2886
  var import_fs25 = __toESM(require("fs"), 1);
2704
2887
  var import_url24 = require("url");
2705
2888
  var import_meta24 = {};
2706
- var resendRunTanstackState = async () => {
2889
+ var resendRunTanstackStart = async () => {
2707
2890
  try {
2708
2891
  const projectDir = process.cwd();
2709
2892
  const packageJsonPath = import_path25.default.join(projectDir, "package.json");
@@ -2741,6 +2924,12 @@ EMAIL_SENDER_ADDRESS=`);
2741
2924
  }
2742
2925
  const libDestinationPath = import_path25.default.join(libPath, "email.ts");
2743
2926
  import_fs25.default.copyFileSync(templatePath, libDestinationPath);
2927
+ console.log(import_chalk26.default.green("\nCompleted installation successfully"));
2928
+ console.log(import_chalk26.default.cyan("\nInstall Package:"));
2929
+ console.log(import_chalk26.default.white(`\u2022 resend
2930
+ \u2022 @react-email/components`));
2931
+ console.log(import_chalk26.default.cyan("\nFiles created:"));
2932
+ console.log(import_chalk26.default.white("\u2022 src/lib/email.ts\n"));
2744
2933
  } catch (error) {
2745
2934
  console.log(import_chalk26.default.red(error));
2746
2935
  }
@@ -2772,7 +2961,7 @@ var email = async () => {
2772
2961
  }
2773
2962
  }
2774
2963
  }
2775
- if (framework === "tanstack state") {
2964
+ if (framework === "tanstack start") {
2776
2965
  const srcFolderTanstackState = import_path26.default.join(projectDir, "src");
2777
2966
  const libPathTanstackState = import_path26.default.join(
2778
2967
  srcFolderTanstackState,
@@ -2803,20 +2992,20 @@ var email = async () => {
2803
2992
  if (answers.emailProvider === "Gmail" && framework === "Next js") {
2804
2993
  await gmailRun();
2805
2994
  }
2806
- if (answers.emailProvider === "Gmail" && framework === "tanstack state") {
2807
- await gmailRunTanstackState();
2995
+ if (answers.emailProvider === "Gmail" && framework === "tanstack start") {
2996
+ await gmailRunTanstackStart();
2808
2997
  }
2809
2998
  if (answers.emailProvider === "AWS SES" && framework === "Next js") {
2810
2999
  await awsSesRun();
2811
3000
  }
2812
- if (answers.emailProvider === "AWS SES" && framework === "tanstack state") {
2813
- await awsSesRunTanstackState();
3001
+ if (answers.emailProvider === "AWS SES" && framework === "tanstack start") {
3002
+ await awsSesRunTanstackStart();
2814
3003
  }
2815
3004
  if (answers.emailProvider === "Resend" && framework === "Next js") {
2816
3005
  await resendRun();
2817
3006
  }
2818
- if (answers.emailProvider === "Resend" && framework === "tanstack state") {
2819
- await resendRunTanstackState();
3007
+ if (answers.emailProvider === "Resend" && framework === "tanstack start") {
3008
+ await resendRunTanstackStart();
2820
3009
  }
2821
3010
  };
2822
3011
 
@@ -2980,8 +3169,16 @@ import { sendEmail } from "./email";
2980
3169
  `${authTemplatePath}/reset-password/page.tsx`,
2981
3170
  resetPageDestinationPath
2982
3171
  );
3172
+ console.log(import_chalk28.default.green("\nCompleted installation successfully"));
2983
3173
  console.log(
2984
- import_chalk28.default.green("Successfully added forget and reset-password pages")
3174
+ import_chalk28.default.white(
3175
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/ForgetComponent.tsx" })}
3176
+ ${CreateFolder({ srcFolder: folder, destFolder: "components/authverse/ResetComponent.tsx" })}
3177
+ ${CreateFolder({ srcFolder: folder, destFolder: "components/email/reset-password.tsx" })}
3178
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/auth/forget/page.tsx" })}
3179
+ ${CreateFolder({ srcFolder: folder, destFolder: "app/auth/reset-password/page.tsx" })}
3180
+ `
3181
+ )
2985
3182
  );
2986
3183
  } else {
2987
3184
  console.log(
@@ -3087,7 +3284,7 @@ import { sendEmail } from "./email";
3087
3284
  }
3088
3285
  const forgetComponentPath = import_path28.default.resolve(
3089
3286
  __dirname,
3090
- "./template/TanstackState/components/ForgetComponent.tsx"
3287
+ "./template/TanstackStart/components/ForgetComponent.tsx"
3091
3288
  );
3092
3289
  const componentsDestinationPath = import_path28.default.join(
3093
3290
  srcPath,
@@ -3106,7 +3303,7 @@ import { sendEmail } from "./email";
3106
3303
  }
3107
3304
  const resetComponentPath = import_path28.default.resolve(
3108
3305
  __dirname,
3109
- "./template/TanstackState/components/ResetComponent.tsx"
3306
+ "./template/TanstackStart/components/ResetComponent.tsx"
3110
3307
  );
3111
3308
  const resetDestinationPath = import_path28.default.join(
3112
3309
  componentsDestinationPath,
@@ -3117,7 +3314,7 @@ import { sendEmail } from "./email";
3117
3314
  }
3118
3315
  const authTemplatePath = import_path28.default.resolve(
3119
3316
  __dirname,
3120
- "./template/TanstackState/routes/auth"
3317
+ "./template/TanstackStart/routes/auth"
3121
3318
  );
3122
3319
  const routesDestinationPath = import_path28.default.join(srcPath, "routes", "auth");
3123
3320
  if (!import_fs28.default.existsSync(routesDestinationPath)) {
@@ -3139,8 +3336,16 @@ import { sendEmail } from "./email";
3139
3336
  `${authTemplatePath}/reset-password.tsx`,
3140
3337
  resetPageDestinationPath
3141
3338
  );
3339
+ console.log(import_chalk29.default.green("\nCompleted installation successfully"));
3142
3340
  console.log(
3143
- import_chalk29.default.green("Successfully added forget and reset-password pages")
3341
+ import_chalk29.default.white(
3342
+ `\u2022 src/components/authverse/ForgetComponent.tsx
3343
+ \u2022 src/components/authverse/ResetComponent.tsx
3344
+ \u2022 src/components/email/reset-password.tsx
3345
+ \u2022 src/routes/auth/forget.tsx
3346
+ \u2022 src/routes/auth/reset-password.tsx
3347
+ `
3348
+ )
3144
3349
  );
3145
3350
  } else {
3146
3351
  console.log(
@@ -3163,7 +3368,7 @@ var forget = async () => {
3163
3368
  if (framework === "Next js") {
3164
3369
  return forgetNext();
3165
3370
  }
3166
- if (framework === "tanstack state") {
3371
+ if (framework === "tanstack start") {
3167
3372
  return forgetTanstack();
3168
3373
  }
3169
3374
  };
@@ -3266,7 +3471,12 @@ var verifyNext = async () => {
3266
3471
  if (import_fs29.default.existsSync(templatePath) && !import_fs29.default.existsSync(destFile)) {
3267
3472
  import_fs29.default.copyFileSync(templatePath, destFile);
3268
3473
  }
3269
- console.log(import_chalk31.default.green("Email verification successfully configured"));
3474
+ console.log(import_chalk31.default.green("\nCompleted installation successfully"));
3475
+ console.log(
3476
+ import_chalk31.default.white(
3477
+ `${CreateFolder({ srcFolder: folder, destFolder: "components/email/EmailVerification.tsx" })}`
3478
+ )
3479
+ );
3270
3480
  } catch (error) {
3271
3481
  console.log(import_chalk31.default.red(String(error)));
3272
3482
  }
@@ -3366,7 +3576,8 @@ var verifyTanstack = async () => {
3366
3576
  if (import_fs30.default.existsSync(templatePath) && !import_fs30.default.existsSync(destFile)) {
3367
3577
  import_fs30.default.copyFileSync(templatePath, destFile);
3368
3578
  }
3369
- console.log(import_chalk32.default.green("Email verification successfully configured"));
3579
+ console.log(import_chalk32.default.green("\nCompleted installation successfully"));
3580
+ console.log(import_chalk32.default.white(`\u2022 src/components/email/EmailVerification.tsx`));
3370
3581
  } catch (error) {
3371
3582
  console.log(import_chalk32.default.red(String(error)));
3372
3583
  }
@@ -3383,7 +3594,7 @@ var verification = async () => {
3383
3594
  if (framework === "Next js") {
3384
3595
  await verifyNext();
3385
3596
  }
3386
- if (framework === "tanstack state") {
3597
+ if (framework === "tanstack start") {
3387
3598
  await verifyTanstack();
3388
3599
  }
3389
3600
  } catch (error) {
@@ -3413,15 +3624,15 @@ var initCmd = async (cmd) => {
3413
3624
  cmd: true
3414
3625
  });
3415
3626
  }
3416
- if (framework === "tanstack state" && cmd.orm === "prisma") {
3417
- await prismaRunTanstackState({
3627
+ if (framework === "tanstack start" && cmd.orm === "prisma") {
3628
+ await prismaRunTanstackStart({
3418
3629
  authUi: cmd.authUi === "yes" ? true : false,
3419
3630
  database: cmd.db,
3420
3631
  cmd: true
3421
3632
  });
3422
3633
  }
3423
- if (framework === "tanstack state" && cmd.orm === "drizzle") {
3424
- await drizzleRunTanstackState({
3634
+ if (framework === "tanstack start" && cmd.orm === "drizzle") {
3635
+ await drizzleRunTanstackStart({
3425
3636
  authUi: cmd.authUi === "yes" ? true : false,
3426
3637
  cmd: true
3427
3638
  });