File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ dotenv.config({ path: "../server.env" })
1010import { fromNodeHeaders } from "better-auth/node"
1111import { auth } from "./lib/auth"
1212
13- const secretJwt = process . env . JWT_SECRET
1413const databaseUrl = process . env . DATABASE_URL
1514
1615if ( ! databaseUrl ) throw new Error ( "DATABASE_URL is not defined" )
17- const config = { secretJwt , databaseUrl }
16+ const config = { databaseUrl }
1817export const db = drizzle ( databaseUrl , { schema } )
1918
2019const createContext = async ( { req, res } : CreateFastifyContextOptions ) => {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const start = async () => {
3131
3232 await fastify . register ( fastifyCookie )
3333
34+ // https://github.com/better-auth/better-auth/pull/2006
3435 // Register authentication endpoint
3536 fastify . route ( {
3637 method : [ "GET" , "POST" ] ,
You can’t perform that action at this time.
0 commit comments