create-better-t-stack 3.6.6 → 3.6.8
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/package.json +1 -1
- package/templates/auth/better-auth/server/base/src/index.ts.hbs +10 -10
- package/templates/frontend/react/next/package.json.hbs +3 -3
- package/templates/frontend/react/react-router/package.json.hbs +2 -2
- package/templates/frontend/react/tanstack-router/package.json.hbs +2 -2
- package/templates/frontend/react/tanstack-start/package.json.hbs +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{#if (eq orm "prisma")}}
|
|
2
|
-
import { betterAuth
|
|
2
|
+
import { betterAuth } from "better-auth";
|
|
3
3
|
import { prismaAdapter } from "better-auth/adapters/prisma";
|
|
4
4
|
{{#if (eq payments "polar")}}
|
|
5
5
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -7,7 +7,7 @@ import { polarClient } from "./lib/payments";
|
|
|
7
7
|
{{/if}}
|
|
8
8
|
import prisma from "@{{projectName}}/db";
|
|
9
9
|
|
|
10
|
-
export const auth = betterAuth
|
|
10
|
+
export const auth = betterAuth({
|
|
11
11
|
database: prismaAdapter(prisma, {
|
|
12
12
|
{{#if (eq database "postgres")}}provider: "postgresql",{{/if}}
|
|
13
13
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -59,7 +59,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
59
59
|
|
|
60
60
|
{{#if (eq orm "drizzle")}}
|
|
61
61
|
{{#if (or (eq runtime "bun") (eq runtime "node") (eq runtime "none"))}}
|
|
62
|
-
import { betterAuth
|
|
62
|
+
import { betterAuth } from "better-auth";
|
|
63
63
|
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
64
64
|
{{#if (eq payments "polar")}}
|
|
65
65
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -68,7 +68,7 @@ import { polarClient } from "./lib/payments";
|
|
|
68
68
|
import { db } from "@{{projectName}}/db";
|
|
69
69
|
import * as schema from "@{{projectName}}/db/schema/auth";
|
|
70
70
|
|
|
71
|
-
export const auth = betterAuth
|
|
71
|
+
export const auth = betterAuth({
|
|
72
72
|
database: drizzleAdapter(db, {
|
|
73
73
|
{{#if (eq database "postgres")}}provider: "pg",{{/if}}
|
|
74
74
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -119,7 +119,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
119
119
|
{{/if}}
|
|
120
120
|
|
|
121
121
|
{{#if (eq runtime "workers")}}
|
|
122
|
-
import { betterAuth
|
|
122
|
+
import { betterAuth } from "better-auth";
|
|
123
123
|
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
124
124
|
{{#if (eq payments "polar")}}
|
|
125
125
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -129,7 +129,7 @@ import { db } from "@{{projectName}}/db";
|
|
|
129
129
|
import * as schema from "@{{projectName}}/db/schema/auth";
|
|
130
130
|
import { env } from "cloudflare:workers";
|
|
131
131
|
|
|
132
|
-
export const auth = betterAuth
|
|
132
|
+
export const auth = betterAuth({
|
|
133
133
|
database: drizzleAdapter(db, {
|
|
134
134
|
{{#if (eq database "postgres")}}provider: "pg",{{/if}}
|
|
135
135
|
{{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
|
|
@@ -194,7 +194,7 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
194
194
|
{{/if}}
|
|
195
195
|
|
|
196
196
|
{{#if (eq orm "mongoose")}}
|
|
197
|
-
import { betterAuth
|
|
197
|
+
import { betterAuth } from "better-auth";
|
|
198
198
|
import { mongodbAdapter } from "better-auth/adapters/mongodb";
|
|
199
199
|
{{#if (eq payments "polar")}}
|
|
200
200
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
@@ -202,7 +202,7 @@ import { polarClient } from "./lib/payments";
|
|
|
202
202
|
{{/if}}
|
|
203
203
|
import { client } from "@{{projectName}}/db";
|
|
204
204
|
|
|
205
|
-
export const auth = betterAuth
|
|
205
|
+
export const auth = betterAuth({
|
|
206
206
|
database: mongodbAdapter(client),
|
|
207
207
|
trustedOrigins: [
|
|
208
208
|
process.env.CORS_ORIGIN || "",
|
|
@@ -248,13 +248,13 @@ export const auth = betterAuth<BetterAuthOptions>({
|
|
|
248
248
|
{{/if}}
|
|
249
249
|
|
|
250
250
|
{{#if (eq orm "none")}}
|
|
251
|
-
import { betterAuth
|
|
251
|
+
import { betterAuth } from "better-auth";
|
|
252
252
|
{{#if (eq payments "polar")}}
|
|
253
253
|
import { polar, checkout, portal } from "@polar-sh/better-auth";
|
|
254
254
|
import { polarClient } from "./lib/payments";
|
|
255
255
|
{{/if}}
|
|
256
256
|
|
|
257
|
-
export const auth = betterAuth
|
|
257
|
+
export const auth = betterAuth({
|
|
258
258
|
database: "", // Invalid configuration
|
|
259
259
|
trustedOrigins: [
|
|
260
260
|
process.env.CORS_ORIGIN || "",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"class-variance-authority": "^0.7.1",
|
|
14
14
|
"clsx": "^2.1.1",
|
|
15
15
|
"lucide-react": "^0.546.0",
|
|
16
|
-
"next": "16.0.
|
|
16
|
+
"next": "^16.0.7",
|
|
17
17
|
"next-themes": "^0.4.6",
|
|
18
|
-
"react": "19.2
|
|
19
|
-
"react-dom": "19.2
|
|
18
|
+
"react": "19.1.2",
|
|
19
|
+
"react-dom": "19.1.2",
|
|
20
20
|
"sonner": "^2.0.5",
|
|
21
21
|
"tailwind-merge": "^3.3.1",
|
|
22
22
|
"tw-animate-css": "^1.3.4",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"isbot": "^5.1.28",
|
|
20
20
|
"lucide-react": "^0.511.0",
|
|
21
21
|
"next-themes": "^0.4.6",
|
|
22
|
-
"react": "19.1.
|
|
23
|
-
"react-dom": "19.1.
|
|
22
|
+
"react": "19.1.2",
|
|
23
|
+
"react-dom": "19.1.2",
|
|
24
24
|
"react-router": "^7.6.1",
|
|
25
25
|
"sonner": "^2.0.3",
|
|
26
26
|
"tailwind-merge": "^3.3.0",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
21
|
"lucide-react": "^0.473.0",
|
|
22
22
|
"next-themes": "^0.4.6",
|
|
23
|
-
"react": "19.1.
|
|
24
|
-
"react-dom": "19.1.
|
|
23
|
+
"react": "19.1.2",
|
|
24
|
+
"react-dom": "19.1.2",
|
|
25
25
|
"sonner": "^2.0.5",
|
|
26
26
|
"tailwind-merge": "^3.3.1",
|
|
27
27
|
"tw-animate-css": "^1.2.5",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
21
|
"lucide-react": "^0.525.0",
|
|
22
22
|
"next-themes": "^0.4.6",
|
|
23
|
-
"react": "19.1.
|
|
24
|
-
"react-dom": "19.1.
|
|
23
|
+
"react": "19.1.2",
|
|
24
|
+
"react-dom": "19.1.2",
|
|
25
25
|
"sonner": "^2.0.3",
|
|
26
26
|
"tailwindcss": "^4.1.3",
|
|
27
27
|
"tailwind-merge": "^3.3.1",
|