Skip to content

Commit 57c8ebf

Browse files
committed
what the hell. sure
1 parent 1fcdeb3 commit 57c8ebf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lib/auth/auth.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@ import { betterAuth } from 'better-auth'
22
import { drizzleAdapter } from 'better-auth/adapters/drizzle'
33
import { getConnection } from '~/lib/db/connection'
44
import * as schema from '~/lib/db/schema'
5+
import { Env } from '~/lib/handler'
56

6-
export function createAuth(env: {
7-
BETTER_AUTH_SECRET: string
8-
BETTER_AUTH_URL: string
9-
TURSO_DATABASE_URL: string
10-
TURSO_DATABASE_AUTH_TOKEN?: string
11-
ENVIRONMENT?: string
12-
}) {
7+
export function createAuth(env: Env) {
138
const db = getConnection(env)
149

1510
return betterAuth({

0 commit comments

Comments
 (0)