Working example of a protected dynamic route handler with Next15 and V5 that builds ? #12785
Unanswered
arejasverduras
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can anyone give a clear example of a protected dynamic api route handler (patch, delete) that is 100% typesafe and builds in Next.js 15 using next-auth V5?
I have tried to apply this signature from this issue in many variations:
#9426
but it always returns the following when building:
This is the code that should work according to #9426
I have got it right for my POST handlers using the fix in this example:
#11727
Maybe someone can provide an example for a PATCH or DELETE route ?
Beta Was this translation helpful? Give feedback.
All reactions