diff --git a/bun.lockb b/bun.lockb index 9b03ab68..b4b8c74f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index d55776d7..7800f432 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "start": "next start" }, "dependencies": { + "@auth/core": "^0.19.0", "@auth/drizzle-adapter": "^0.3.2", "@headlessui/react": "^1.7.17", "@planetscale/database": "^1.11.0", diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 6afca501..3784af10 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -10,6 +10,8 @@ import { varchar, } from "drizzle-orm/mysql-core"; +import { type AdapterAccount } from "@auth/core/adapters"; + /** * This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same * database instance for multiple projects. @@ -188,7 +190,7 @@ export const accounts = mySqlTable( { userId: varchar("userId", { length: 255 }).notNull(), type: varchar("type", { length: 255 }) - .$type<"oauth" | "oidc" | "email">() + .$type() .notNull(), provider: varchar("provider", { length: 255 }).notNull(), providerAccountId: varchar("providerAccountId", { length: 255 }).notNull(),