How can I create custom params decorate with response? #613
ddrynau-work
started this conversation in
General
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to create custom params decorate @Session that will return session data from NextAuth session. For that I need NextApiResponse object but createParamDecorator uses only request data. How can I upgrade createParamDecorator function that I will able to use the response data too?
Example: const session = getServerSession(req, res, authOptions)
Beta Was this translation helpful? Give feedback.
All reactions