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

fix(ts): compatibility with next-auth v4 types #8294

Merged
merged 3 commits into from
Aug 11, 2023

Conversation

balazsorban44
Copy link
Member

@balazsorban44 balazsorban44 commented Aug 11, 2023

Fixes #8283

@auth/core/adapters have some incompatible types with next-auth/adapters since it's a bit stricter. This PR aims to smoothen out the transition to @auth/* packages (as well as next-auth v5 #7443)

This is achieved by loosening the next-auth/adapters types whenever an @auth/*-adapter is imported into a project. When only using @auth/* packages or next-auth v5 from #7443, this module augmentation will have no effect.

@vercel
Copy link

vercel bot commented Aug 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 10:20am
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
auth-docs-nextra ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 10:20am
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 10:20am

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters core Refers to `@auth/core` labels Aug 11, 2023
@balazsorban44 balazsorban44 marked this pull request as ready for review August 11, 2023 10:12
@balazsorban44 balazsorban44 changed the title fix(ts): compatibility with next-auth v4 fix(ts): compatibility with next-auth v4 types Aug 11, 2023
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`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@auth/drizzle-adapter incompatibility - linkAccount
1 participant