Skip to content

Commit fd17d14

Browse files
committed
1 parent bad5676 commit fd17d14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ dotenv.config({ path: "../server.env" })
1010
import { fromNodeHeaders } from "better-auth/node"
1111
import { auth } from "./lib/auth"
1212

13-
const secretJwt = process.env.JWT_SECRET
1413
const databaseUrl = process.env.DATABASE_URL
1514

1615
if (!databaseUrl) throw new Error("DATABASE_URL is not defined")
17-
const config = { secretJwt, databaseUrl }
16+
const config = { databaseUrl }
1817
export const db = drizzle(databaseUrl, { schema })
1918

2019
const createContext = async ({ req, res }: CreateFastifyContextOptions) => {

server/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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"],

0 commit comments

Comments
 (0)