-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Please change the prisma adapter Account providerType to type and providerId to provider #7689
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Adding correct sveltekit client doc links. * Updating urls for sveltekit index.
* docs(fauna): move content to source * chore: fix spelling * Apply suggestions from code review --------- Co-authored-by: Balázs Orbán <info@balazsorban.com>
Co-authored-by: Anti Revoluzzer <anti@siimpl.io>
BREAKING CHANGE: Complete rewrite of the package. It is now published as ESM-only and written for `next-auth@4`. `next-auth@3` support is removed. --------- Co-authored-by: Balázs Orbán <info@balazsorban.com>
* remove unmaintained changelogs * move logos to docs * unify readmes * fix logo urls
Kailash8799
requested review from
ubbe-xyz,
ndom91,
ThangHuuVu and
balazsorban44
as code owners
May 31, 2023 07:41
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
github-actions
bot
added
adapters
Changes related to the core code concerning database adapters
core
Refers to `@auth/core`
dgraph
@auth/dgraph-adapter
dynamodb
@auth/dynamodb-adapter
examples
fauna
@auth/fauna-adapter
firebase
@auth/firebase-adapter
frameworks
legacy
Refers to `next-auth` v4. Minimal maintenance.
mikro-orm
@auth/mikro-orm-adapter
mongodb
@auth/mongodb-adapter
neo4j
@auth/neo4j-adapter
playgrounds
pouchdb
@auth/pouchdb-adapter
prisma
@auth/prisma-adapter
providers
sequelize
@auth/sequelize-adapter
solidjs
supabase
@auth/supabase-adapter
svelte
typeorm-legacy
upstash-redis
@auth/upstash-redis-adapter
xata
@auth/xata-adapter
labels
May 31, 2023
Hi, this PR was likely opened by mistake. Anyway, the suggested change probably wouldn't make it, since the Account model already has a And Thanks though! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
adapters
Changes related to the core code concerning database adapters
core
Refers to `@auth/core`
dgraph
@auth/dgraph-adapter
dynamodb
@auth/dynamodb-adapter
examples
fauna
@auth/fauna-adapter
firebase
@auth/firebase-adapter
frameworks
legacy
Refers to `next-auth` v4. Minimal maintenance.
mikro-orm
@auth/mikro-orm-adapter
mongodb
@auth/mongodb-adapter
neo4j
@auth/neo4j-adapter
playgrounds
pouchdb
@auth/pouchdb-adapter
prisma
@auth/prisma-adapter
providers
sequelize
@auth/sequelize-adapter
solidjs
supabase
@auth/supabase-adapter
svelte
typeorm-legacy
upstash-redis
@auth/upstash-redis-adapter
xata
@auth/xata-adapter
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello this is a small issue in google login auth in next auth when we are copy code which are given in next-auth docs this will be give you error please change the below code
model Account {
id String @id @default(cuid())
userId String
providerType String
providerId String
providerAccountId String
refreshToken String?
accessToken String?
accessTokenExpires DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id])
@@unique([providerId, providerAccountId])
}
change above code to below code
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])
}