lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.61k stars 448 forks source link

[Bug]: Argument of type LibSQLDatabase is not assignable to type BaseSQLiteDatabase #1435

Closed nevthereal closed 5 months ago

nevthereal commented 5 months ago

Package

​@lucia-auth/adapter-drizzle

Describe the bug

If I want to create my Drizzle adapter:

export const adapter = new DrizzleSQLiteAdapter(db, sessionTable, userTable);

the editor yells at me with the error mentioned in the title. The whole application works just fine. I am using Turso for the database, that is why it is LibSQL. I mentioned this error in an issue before: https://github.com/lucia-auth/lucia/issues/1425.

pilcrowOnPaper commented 5 months ago

I can't seem to recreate this issue and I believe it's still related to #1425 since the fix hasn't been published yet. Feel free to reopen the issue if you can create a reproduction