diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js index b482c2a5..8ccba8a9 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -31,7 +31,7 @@ const options = { adapter: Adapters.TypeORM.Adapter(process.env.MONGODB_URI, { - models: { + customModels: { User: Models.User, }, }),