create-better-t-stack 2.45.4 → 2.45.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.45.4",
3
+ "version": "2.45.5",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,12 +1,12 @@
1
1
  {{#if (eq orm "prisma")}}
2
- import { betterAuth } from "better-auth";
2
+ import { betterAuth, type BetterAuthOptions } from "better-auth";
3
3
  import { prismaAdapter } from "better-auth/adapters/prisma";
4
4
  {{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
5
5
  import { expo } from "@better-auth/expo";
6
6
  {{/if}}
7
7
  import prisma from "../db";
8
8
 
9
- export const auth = betterAuth({
9
+ export const auth = betterAuth<BetterAuthOptions>({
10
10
  database: prismaAdapter(prisma, {
11
11
  {{#if (eq database "postgres")}}provider: "postgresql"{{/if}}
12
12
  {{#if (eq database "sqlite")}}provider: "sqlite"{{/if}}
@@ -37,7 +37,7 @@ export const auth = betterAuth({
37
37
 
38
38
  {{#if (eq orm "drizzle")}}
39
39
  {{#if (or (eq runtime "bun") (eq runtime "node"))}}
40
- import { betterAuth } from "better-auth";
40
+ import { betterAuth, type BetterAuthOptions } from "better-auth";
41
41
  import { drizzleAdapter } from "better-auth/adapters/drizzle";
42
42
  {{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
43
43
  import { expo } from "@better-auth/expo";
@@ -45,7 +45,7 @@ import { expo } from "@better-auth/expo";
45
45
  import { db } from "../db";
46
46
  import * as schema from "../db/schema/auth";
47
47
 
48
- export const auth = betterAuth({
48
+ export const auth = betterAuth<BetterAuthOptions>({
49
49
  database: drizzleAdapter(db, {
50
50
  {{#if (eq database "postgres")}}provider: "pg",{{/if}}
51
51
  {{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
@@ -75,7 +75,7 @@ export const auth = betterAuth({
75
75
  {{/if}}
76
76
 
77
77
  {{#if (eq runtime "workers")}}
78
- import { betterAuth } from "better-auth";
78
+ import { betterAuth, type BetterAuthOptions } from "better-auth";
79
79
  import { drizzleAdapter } from "better-auth/adapters/drizzle";
80
80
  {{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
81
81
  import { expo } from "@better-auth/expo";
@@ -84,7 +84,7 @@ import { db } from "../db";
84
84
  import * as schema from "../db/schema/auth";
85
85
  import { env } from "cloudflare:workers";
86
86
 
87
- export const auth = betterAuth({
87
+ export const auth = betterAuth<BetterAuthOptions>({
88
88
  database: drizzleAdapter(db, {
89
89
  {{#if (eq database "postgres")}}provider: "pg",{{/if}}
90
90
  {{#if (eq database "sqlite")}}provider: "sqlite",{{/if}}
@@ -117,14 +117,14 @@ export const auth = betterAuth({
117
117
  {{/if}}
118
118
 
119
119
  {{#if (eq orm "mongoose")}}
120
- import { betterAuth } from "better-auth";
120
+ import { betterAuth, type BetterAuthOptions } from "better-auth";
121
121
  import { mongodbAdapter } from "better-auth/adapters/mongodb";
122
122
  {{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
123
123
  import { expo } from "@better-auth/expo";
124
124
  {{/if}}
125
125
  import { client } from "../db";
126
126
 
127
- export const auth = betterAuth({
127
+ export const auth = betterAuth<BetterAuthOptions>({
128
128
  database: mongodbAdapter(client),
129
129
  trustedOrigins: [
130
130
  process.env.CORS_ORIGIN || "",
@@ -149,12 +149,12 @@ export const auth = betterAuth({
149
149
  {{/if}}
150
150
 
151
151
  {{#if (eq orm "none")}}
152
- import { betterAuth } from "better-auth";
152
+ import { betterAuth, type BetterAuthOptions } from "better-auth";
153
153
  {{#if (or (includes frontend "native-nativewind") (includes frontend "native-unistyles"))}}
154
154
  import { expo } from "@better-auth/expo";
155
155
  {{/if}}
156
156
 
157
- export const auth = betterAuth({
157
+ export const auth = betterAuth<BetterAuthOptions>({
158
158
  database: "", // Invalid configuration
159
159
  trustedOrigins: [
160
160
  process.env.CORS_ORIGIN || "",