Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Update creating-a-database-adapter.md #194

Merged
merged 1 commit into from Jan 7, 2022

Conversation

Hamzah-syed
Copy link
Contributor

in getUserByAccount() and unlinkAccount() we are getting providerAccountId instead of id

Changes 💡

Affected issues 🎟

Screenshot (If Applicable) 📷

in getUserByAccount() and unlinkAccount() we are getting providerAccountId instead of id
@vercel
Copy link

vercel bot commented Jan 7, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nextauthjs/docs/57sfHHgKnrYZR8QpxSt3oTgjjFuo
✅ Preview: https://docs-git-fork-hamzah-syed-patch-1-nextauthjs.vercel.app

@@ -36,7 +36,7 @@ export default function MyAdapter(client, options = {}) {
async linkAccount(account) {
return
},
async unlinkAccount({ provider, id }) {
async unlinkAccount({ providerAccountId, provider}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async unlinkAccount({ providerAccountId, provider}) {
async unlinkAccount({ providerAccountId, provider}) {

This method currently isn't even invoked in the core, but we will likely match it with getUserByAccount, good catch!

@balazsorban44 balazsorban44 merged commit 9a81ed7 into nextauthjs:main Jan 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants