fix: signIn infer provider type#4623
Merged
balazsorban44 merged 1 commit intonextauthjs:mainfrom May 31, 2022
ArthurPedroti:main
Merged
fix: signIn infer provider type#4623balazsorban44 merged 1 commit intonextauthjs:mainfrom ArthurPedroti:main
balazsorban44 merged 1 commit intonextauthjs:mainfrom
ArthurPedroti:main
Conversation
The "P" type it's not passed in any props, so the result type doesn't understand and return the false type always, Adding the "P" at provider type props.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
balazsorban44
approved these changes
May 31, 2022
Member
balazsorban44
left a comment
There was a problem hiding this comment.
Thanks! Do you this fixes the issue #4513?
Member
|
@ArthurPedroti this, unfortunately, broke tests: https://github.com/nextauthjs/next-auth/runs/6674906912?check_suite_focus=true so I have to revert it. Feel free to have another look. |
balazsorban44
added a commit
that referenced
this pull request
May 31, 2022
This reverts commit 46089eb.
balazsorban44
added a commit
that referenced
this pull request
May 31, 2022
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The "P" type it's not passed in any props, so the result type doesn't understand and returns the "false type" always, Adding the "P" at provider type props.
My local test implementation:
before:

after:

🧢 Checklist