Skip to content

Commit 64bda5e

Browse files
Merge pull request #187 from Speedrunyourknowledge/develop
fix: add back prisma verification
2 parents b6f5154 + a668462 commit 64bda5e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

calc-backend/prisma/schema.prisma

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ model Account {
6464
@@map("account")
6565
}
6666

67+
model Verification {
68+
id String @id @default(cuid()) @map("_id")
69+
identifier String
70+
value String
71+
expiresAt DateTime
72+
createdAt DateTime @default(now())
73+
updatedAt DateTime @updatedAt
74+
75+
@@map("verification")
76+
}
77+
6778
model Func {
6879
id String @id @default(cuid()) @map("_id")
6980
equation String

calc-backend/src/lib/auth.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ export const auth = betterAuth({
2222
advanced: {
2323
cookiePrefix: "calcvis"
2424
},
25+
verification: {
26+
modelName: "verifications",
27+
fields: {
28+
identifier: "id"
29+
},
30+
disableCleanup: false
31+
},
2532
onAPIError: {
2633
throw: true,
2734
onError: (e) =>{

0 commit comments

Comments
 (0)