Open MahirAlam opened 1 month ago
Having the same issue after updating dependecies, trying to figure out which one cause the issue
Sorry for the late response, what drivers are you using? @lucia-auth/adapter-drizzle
uses pg
for its tests and it's working fine
I'm really confused with this since the error indicates the session is defined but the user isn't. I'm not sure how that's possible with an INNER JOIN.
const result = await this.db
.select({
user: this.userTable,
session: this.sessionTable
})
.from(this.sessionTable)
.innerJoin(this.userTable, eq(this.sessionTable.userId, this.userTable.id))
.where(eq(this.sessionTable.id, sessionId));
Package
@lucia-auth/session-drizzle
Describe the bug
It is so sudden!
I checked everything all (everything was working). then, I pushed the code to github and then the production build showed an error (the error started showing in production when I changed the username and name by updating the DB) and when I ran the dev server same Kind of error was showing!
The error!
I also sometime get this message
I always ignore it.
I tried deleting the DB and tried loging in again e.t.c. but nothing worked!