11{{ #if (eq orm " prisma" )}}
2- import { betterAuth, type BetterAuthOptions } from "better-auth";
2+ import { betterAuth } from "better-auth";
33import { prismaAdapter } from "better-auth/adapters/prisma";
44{{ #if (or (includes frontend " native-nativewind" ) (includes frontend " native-unistyles" ))}}
55import { expo } from "@better-auth/expo";
@@ -10,7 +10,7 @@ import { polarClient } from "./lib/payments";
1010{{ /if }}
1111import prisma from "@{{ projectName }} /db";
1212
13- export const auth = betterAuth< BetterAuthOptions > ({
13+ export const auth = betterAuth({
1414 database: prismaAdapter(prisma, {
1515 {{ #if (eq database " postgres" )}} provider: "postgresql"{{ /if }}
1616 {{ #if (eq database " sqlite" )}} provider: "sqlite"{{ /if }}
@@ -67,7 +67,7 @@ export const auth = betterAuth<BetterAuthOptions>({
6767
6868{{ #if (eq orm " drizzle" )}}
6969{{ #if (or (eq runtime " bun" ) (eq runtime " node" ) (eq runtime " none" ))}}
70- import { betterAuth, type BetterAuthOptions } from "better-auth";
70+ import { betterAuth } from "better-auth";
7171import { drizzleAdapter } from "better-auth/adapters/drizzle";
7272{{ #if (or (includes frontend " native-nativewind" ) (includes frontend " native-unistyles" ))}}
7373import { expo } from "@better-auth/expo";
@@ -79,7 +79,7 @@ import { polarClient } from "./lib/payments";
7979import { db } from "@{{ projectName }} /db";
8080import * as schema from "@{{ projectName }} /db/schema/auth";
8181
82- export const auth = betterAuth< BetterAuthOptions > ({
82+ export const auth = betterAuth({
8383 database: drizzleAdapter(db, {
8484 {{ #if (eq database " postgres" )}} provider: "pg",{{ /if }}
8585 {{ #if (eq database " sqlite" )}} provider: "sqlite",{{ /if }}
@@ -135,7 +135,7 @@ export const auth = betterAuth<BetterAuthOptions>({
135135{{ /if }}
136136
137137{{ #if (eq runtime " workers" )}}
138- import { betterAuth, type BetterAuthOptions } from "better-auth";
138+ import { betterAuth } from "better-auth";
139139import { drizzleAdapter } from "better-auth/adapters/drizzle";
140140{{ #if (or (includes frontend " native-nativewind" ) (includes frontend " native-unistyles" ))}}
141141import { expo } from "@better-auth/expo";
@@ -148,7 +148,7 @@ import { db } from "@{{projectName}}/db";
148148import * as schema from "@{{ projectName }} /db/schema/auth";
149149import { env } from "cloudflare:workers";
150150
151- export const auth = betterAuth< BetterAuthOptions > ({
151+ export const auth = betterAuth({
152152 database: drizzleAdapter(db, {
153153 {{ #if (eq database " postgres" )}} provider: "pg",{{ /if }}
154154 {{ #if (eq database " sqlite" )}} provider: "sqlite",{{ /if }}
@@ -217,7 +217,7 @@ export const auth = betterAuth<BetterAuthOptions>({
217217{{ /if }}
218218
219219{{ #if (eq orm " mongoose" )}}
220- import { betterAuth, type BetterAuthOptions } from "better-auth";
220+ import { betterAuth } from "better-auth";
221221import { mongodbAdapter } from "better-auth/adapters/mongodb";
222222{{ #if (or (includes frontend " native-nativewind" ) (includes frontend " native-unistyles" ))}}
223223import { expo } from "@better-auth/expo";
@@ -228,7 +228,7 @@ import { polarClient } from "./lib/payments";
228228{{ /if }}
229229import { client } from "@{{ projectName }} /db";
230230
231- export const auth = betterAuth< BetterAuthOptions > ({
231+ export const auth = betterAuth({
232232 database: mongodbAdapter(client),
233233 trustedOrigins: [
234234 process.env.CORS_ORIGIN || "",
@@ -279,7 +279,7 @@ export const auth = betterAuth<BetterAuthOptions>({
279279{{ /if }}
280280
281281{{ #if (eq orm " none" )}}
282- import { betterAuth, type BetterAuthOptions } from "better-auth";
282+ import { betterAuth } from "better-auth";
283283{{ #if (or (includes frontend " native-nativewind" ) (includes frontend " native-unistyles" ))}}
284284import { expo } from "@better-auth/expo";
285285{{ /if }}
@@ -288,7 +288,7 @@ import { polar, checkout, portal } from "@polar-sh/better-auth";
288288import { polarClient } from "./lib/payments";
289289{{ /if }}
290290
291- export const auth = betterAuth< BetterAuthOptions > ({
291+ export const auth = betterAuth({
292292 database: "", // Invalid configuration
293293 trustedOrigins: [
294294 process.env.CORS_ORIGIN || "",
0 commit comments