Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter Error, GetUserByAccount Error #6143

Closed
ghost opened this issue Dec 22, 2022 · 1 comment
Closed

Adapter Error, GetUserByAccount Error #6143

ghost opened this issue Dec 22, 2022 · 1 comment
Labels
question Ask how to do something or how something works

Comments

@ghost
Copy link

ghost commented Dec 22, 2022

Question 💬

Screenshot 2022-12-22 2 28 08 PM
Screenshot 2022-12-22 2 28 27 PM
Screenshot 2022-12-22 2 29 52 PM
Screenshot 2022-12-22 2 30 17 PM

How to reproduce ☕️

datasource db {
provider = "mongodb"
url = env("MONGODB_URI")
}

generator client {
provider = "prisma-client-js"
}

model Account {
id String @id @default(auto()) @Map("_id") @db.ObjectId
userId String @db.ObjectId
type String
provider String
providerAccountId String
refresh_token String? @db.String
access_token String? @db.String
expires_at Int?
token_type String?
scope String?
id_token String? @db.String
session_state String?

user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([provider, providerAccountId])
}

model Session {
id String @id @default(auto()) @Map("_id") @db.ObjectId
sessionToken String @unique
userId String @db.ObjectId
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
id String @id @default(auto()) @Map("_id") @db.ObjectId
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
}

model VerificationToken {
id String @id @default(auto()) @Map("_id") @db.ObjectId
identifier String
token String @unique
expires DateTime

@@unique([identifier, token])
}

Contributing 🙌🏽

Yes, I am willing to help answer this question in a PR

@ghost ghost added the question Ask how to do something or how something works label Dec 22, 2022
@ghost
Copy link
Author

ghost commented Dec 22, 2022

Someone pls help to solve this, I am totally new to all these stuff...

@nextauthjs nextauthjs locked and limited conversation to collaborators Dec 22, 2022
@balazsorban44 balazsorban44 converted this issue into discussion #6144 Dec 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Ask how to do something or how something works
Projects
None yet
Development

No branches or pull requests

0 participants