We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcdeb3 commit 57c8ebfCopy full SHA for 57c8ebf
src/lib/auth/auth.ts
@@ -2,14 +2,9 @@ import { betterAuth } from 'better-auth'
2
import { drizzleAdapter } from 'better-auth/adapters/drizzle'
3
import { getConnection } from '~/lib/db/connection'
4
import * as schema from '~/lib/db/schema'
5
+import { Env } from '~/lib/handler'
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
-}) {
+export function createAuth(env: Env) {
13
const db = getConnection(env)
14
15
return betterAuth({
0 commit comments