Error: hex string expected

Hi, I have an error when logging in, even though I think I've configured everything correctly. Here are some ss
I'm a newbie, so I'm probably missing something.



enerator client {
provider = "prisma-client-js"
output = "../lib/generated/prisma"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

// Better Auth required models
model User {
id String @id @default(cuid())
name String?
email String @unique
emailVerified Boolean @default(false)
image String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

// Relations
accounts Account[]
sessions Session[]

@@map("user")
}

model Account {
id String @id @default(cuid())
userId String
accountId String
providerId String
accessToken String?
refreshToken String?
idToken String?
accessTokenExpiresAt DateTime?
refreshTokenExpiresAt DateTime?
scope String?
password String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([providerId, accountId])
@@map("account")
}

model Session {
id String @id @default(cuid())
userId String
expiresAt DateTime
token String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
ipAddress String?
userAgent String?

user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@map("session")
}

model Verification {
id String @id @default(cuid())
identifier String
value String
expiresAt DateTime
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@unique([identifier, value])
@@map("verification")
}
image.png
image.png
Was this page helpful?