Connect, collaborate, and grow with a community of TypeScript developers
prisma-adapter updated (#1281) (#1302)
hatsmakerc73f2069eabd
diff --git a/packages/auth/package.json b/packages/auth/package.jsonindex 1ac3ed5d..fefffa21 100644--- a/packages/auth/package.json+++ b/packages/auth/package.json@@ -28,7 +28,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@next-auth/prisma-adapter": "^1.0.7",+ "@auth/prisma-adapter": "^1.0.10","@repo/db": "workspace:*","next-auth": "5.0.0-beta.3"},diff --git a/packages/auth/src/server.ts b/packages/auth/src/server.tsindex 151a351b..50f1b4f0 100644--- a/packages/auth/src/server.ts+++ b/packages/auth/src/server.ts@@ -1,5 +1,6 @@-import { PrismaAdapter } from '@next-auth/prisma-adapter';+import { PrismaAdapter } from '@auth/prisma-adapter';import type { Role, RoleTypes } from '@repo/db/types';+import type { Adapter } from '@auth/core/adapters';import { type DefaultSession } from 'next-auth';import GitHubProvider from 'next-auth/providers/github';import { prisma } from '@repo/db';@@ -104,7 +105,7 @@ export const {};},},- adapter: PrismaAdapter(prisma),+ adapter: PrismaAdapter(prisma) as Adapter,providers: [GitHubProvider({clientId: process.env.GITHUB_ID!,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ad05bed8..8b676dac 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -463,9 +463,9 @@ importers:packages/auth:dependencies:- '@next-auth/prisma-adapter':- specifier: ^1.0.7- version: 1.0.7(@prisma/[email protected])([email protected])+ '@auth/prisma-adapter':+ specifier: ^1.0.10+ version: 1.0.10(@prisma/[email protected])'@repo/db':specifier: workspace:*version: link:../db@@ -953,6 +953,34 @@ packages:dev: falsepatched: true+ /@auth/[email protected]:+ resolution: {integrity: sha512-Ql8YobXp57mbXqHNaaroIAgBopKaxWI+3Tlu1rGcXW5KPzXdfTqijZ4HOuZvWKqmhbMWQ9xS9r8uG4fMonZYwg==}+ peerDependencies:+ nodemailer: ^6.8.0+ peerDependenciesMeta:+ nodemailer:+ optional: true+ dependencies:+ '@panva/hkdf': 1.1.1+ '@types/cookie': 0.6.0+ cookie: 0.6.0+ jose: 5.1.3+ oauth4webapi: 2.3.0+ preact: 10.11.3+ preact-render-to-string: 5.2.3([email protected])+ dev: false++ /@auth/[email protected](@prisma/[email protected]):+ resolution: {integrity: sha512-k2rrlgVwhyZlLtxm27FWeY7spsznIxAjdTgYuXFtF5jLEG6v1Ju1Y3cgVld8BKNljhmVaSJ8xVmaK/U+roD1DA==}+ peerDependencies:+ '@prisma/client': '>=2.26.0 || >=3 || >=4 || >=5'+ dependencies:+ '@auth/core': 0.18.5+ '@prisma/client': 5.0.0([email protected])+ transitivePeerDependencies:+ - nodemailer+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==}engines: {node: '>=6.9.0'}@@ -2432,16 +2460,6 @@ packages:dev: falsepatched: true- resolution: {integrity: sha512-Cdko4KfcmKjsyHFrWwZ//lfLUbcLqlyFqjd/nYE2m3aZ7tjMNUjpks47iw7NTCnXf+5UWz5Ypyt1dSs1EP5QJw==}- peerDependencies:- '@prisma/client': '>=2.26.0 || >=3'- next-auth: ^4- dependencies:- '@prisma/client': 5.0.0([email protected])- next-auth: 5.0.0-beta.3([email protected])([email protected])- dev: false-/@next/[email protected]:resolution: {integrity: sha512-nXKHz63dM0Kn3XPFOKrv2wK+hP9rdBg2iR1PsxuXLHVBoZhMyS1/ldRcX80YFsm2VUws9zM4a0E/1HlLI+P92g==}dependencies:@@ -4760,6 +4778,10 @@ packages:resolution: {integrity: sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg==}dev: true+ /@types/[email protected]:+ resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}+ dev: false+/@types/[email protected]:resolution: {integrity: sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==}dependencies:@@ -6180,6 +6202,11 @@ packages:engines: {node: '>= 0.6'}dev: false+ resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==}+ engines: {node: '>= 0.6'}+ dev: false+resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==}dev: false@@ -8851,6 +8878,10 @@ packages:resolution: {integrity: sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==}dev: false+ resolution: {integrity: sha512-GPExOkcMsCLBTi1YetY2LmkoY559fss0+0KVa6kOfb2YFe84nAM7Nm/XzuZozah4iHgmBGrCOHL5/cy670SBRw==}+ dev: false+resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}engines: {node: '>=10'}