How can I access to request object from [...nextauth]/route? (NextJS 13/14, App Router) #10151
Unanswered
prunusnira
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
-
What I want to do?
access to query params from req object. by using
as third party i use response several information with query parameter
What I tried
https://next-auth.js.org/configuration/initialization#route-handlers-app
In this doc, I can see there's no example to access
req: NextRequest
from App Router. there's only example for page router, which i also tried but not worked for app router as it is.but as i got some idea from that document, i tried something like this
But this results error
As we basically use
so i thought above method would work, but it was not.
is there any workaround to get request object from app router?
i already googled, but i can't find how to get it.
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions