lucia-auth / lucia

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

[Bug]: v3 DrizzlePostgreSQLAdapter default type problem #1322

Closed productdevbook closed 9 months ago

productdevbook commented 9 months ago

Package

lucia-auth

Describe the bug

if .default(sqluuid_generate_v4()), I get a type error when I add default.

export const user = pgTable('user', {
  id: uuid('id').primaryKey().default(sql`uuid_generate_v4()`),

CleanShot 2023-12-31 at 06 59 00@2x

pilcrowonpaper commented 9 months ago

Fixed with @lucia-auth/adapter-drizzle@1.0.0-beta.6