Revert "fix: try fixing OTP ids again =/"

This reverts commit 1a987fe75f.
This commit is contained in:
Vasily Zubarev
2026-01-25 15:12:58 +01:00
parent 1a987fe75f
commit 3d90c50ece
3 changed files with 1 additions and 11 deletions

View File

@@ -43,7 +43,6 @@ export const auth = betterAuth({
},
advanced: {
cookiePrefix: "taxhacker",
generateId: true,
},
plugins: [
emailOTP({

View File

@@ -1,9 +0,0 @@
-- Delete any duplicate verification rows (keep the most recent per identifier) before adding unique constraint.
-- Verification rows are short-lived (e.g. OTP); duplicates can occur if create succeeded but delete failed.
DELETE FROM "verification" a
USING "verification" b
WHERE a."identifier" = b."identifier"
AND a."created_at" < b."created_at";
-- CreateIndex
CREATE UNIQUE INDEX "verification_identifier_key" ON "verification"("identifier");

View File

@@ -80,7 +80,7 @@ model Account {
model Verification {
id String @id @default(uuid()) @db.Uuid
identifier String @unique
identifier String
value String
expiresAt DateTime @map("expires_at")
createdAt DateTime @default(now()) @map("created_at")