Closed Lodimup closed 6 months ago
Incorrect Drizzle Schema present in the doc. The following set of code is incorrect and is different from '@auth/drizzle-adapter'
import { timestamp, pgTable, text, primaryKey, integer, } from "drizzle-orm/pg-core" import type { AdapterAccount } from "next-auth/adapters" import { randomUUID } from "crypto" export const users = pgTable("user", { id: text("id").primaryKey().$defaultFn(() => randomUUID()), name: text("name"), email: text("email").notNull().unique(), emailVerified: timestamp("emailVerified", { mode: "date" }), image: text("image"), }) ... and more
mirror @auth/drizzle-adapter
https://authjs.dev/getting-started/adapters/drizzle
additional errors
Thanks for pointing this out, the drizzle adapter has had a good bti of changes the last few days.
The docs shuold now be up to date with @auth/drizzle-adapter@1.0.1 :pray:
@auth/drizzle-adapter@1.0.1
What is the improvement or update you wish to see?
Incorrect Drizzle Schema present in the doc. The following set of code is incorrect and is different from '@auth/drizzle-adapter'
Is there any context that might help us understand?
mirror @auth/drizzle-adapter
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/adapters/drizzle