Skip to content
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

How to link oauth account to existing account? #621

Closed
5 tasks
iamanam opened this issue Aug 30, 2020 · 2 comments
Closed
5 tasks

How to link oauth account to existing account? #621

iamanam opened this issue Aug 30, 2020 · 2 comments
Labels
question Ask how to do something or how something works

Comments

@iamanam
Copy link

iamanam commented Aug 30, 2020

Your question
If user sign in using email provider for first time and later try to sign in using facebook provider,why it shows OAuthAccountNotLinked error? I think it should be linked automatically. Am i doing anything wrong?

What are you trying to do
i want other oauth provider account to be linked automatically after user sign in with email first time.

Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.

  • Found the documentation helpful
  • Found documentation but was incomplete
  • Could not find relevant documentation
  • Found the example project helpful
  • Did not find the example project helpful
@iamanam iamanam added the question Ask how to do something or how something works label Aug 30, 2020
@iaincollins
Copy link
Member

NextAuth.js does not support automatic account linking as it can allow for account hijacking. Official support for secure account linking and unlinking (which was supported in version 1.x but not in the re-write for version 2.x) is planned.

@Melvynx
Copy link

Melvynx commented Dec 27, 2023

@iaincollins any news for 2024 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Ask how to do something or how something works
Projects
None yet
Development

No branches or pull requests

4 participants