-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Next.js route handler auth return type conflicts #11728
Comments
Created PR regarding this issues #11729 |
This issue was marked with the The issue might require some digging, so it is recommended to have some experience with the project. Have a look at the Contributing Guide first. This will help you set up your development environment to get started. When you are ready, open a PR, and link back to this issue in the form of adding Please make sure that - if applicable - you add tests for the changes you make. If you have any questions, feel free to ask in the comments below or the PR. Generally, you don't need to Note There is no need to ask for permission "can I work on this?" Please, go ahead if there is no linked PR 🙂 |
Any update on this one? I see that the PR got closed |
i havent got any response |
Have the same issue with version |
What is the improvement or update you wish to see?
This code is from next-auth-example template.
without explicit type casting
as any
, type error occurssuch as
For my case, I handled with explicit type casting by createing new type and interface to deal with it.
app/api/sample/route.ts
Therefore, there must be docs fixed since there is no explanations about explicit type casting.
Build Error always occurs without it, so i think it needs to be fixed.
Thanks.
Is there any context that might help us understand?
Reproduction environment
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/session-management/protecting
The text was updated successfully, but these errors were encountered: