Skip to content

Commit 6efc3ef

Browse files
committed
switch from c++ to js bcrypt implementation
1 parent a0cac36 commit 6efc3ef

5 files changed

Lines changed: 17 additions & 20 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@t3-oss/env-nextjs": "^0.13.10",
4646
"@tailwindcss/forms": "^0.5.11",
4747
"@tailwindcss/typography": "^0.5.19",
48-
"bcrypt": "^6.0.0",
48+
"bcryptjs": "^3.0.3",
4949
"date-fns": "^4.1.0",
5050
"discord-api-types": "^0.38.37",
5151
"discord-interactions": "^4.4.0",

pnpm-lock.yaml

Lines changed: 7 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server/actions/resetOAuthSecret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use server";
22

33
import { createId } from "@paralleldrive/cuid2";
4-
import bcrypt from "bcrypt";
4+
import bcrypt from "bcryptjs";
55
import { sql } from "drizzle-orm";
66
import { env } from "~/env";
77
import { expectSession } from "../auth";

src/server/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import bcrypt from "bcrypt";
1+
import bcrypt from "bcryptjs";
22
import { eq } from "drizzle-orm";
33
import { cookies } from "next/headers";
44
import { notFound, redirect, unauthorized } from "next/navigation";

wrangler.jsonc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@
2323
// Enable image optimization
2424
// see https://opennext.js.org/cloudflare/howtos/image
2525
"binding": "IMAGES"
26-
}
26+
},
27+
"observability": {
28+
"logs": {
29+
"enabled": true,
30+
"invocation_logs": true
31+
}
32+
}
2733
}

0 commit comments

Comments
 (0)