Need help extending GetServerSideProps interface #14831
Unanswered
hugo-marques-m3
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone :)
Background: I have a custom server where I use express and have a redis session.
I need to access a value inside of req.user but I'm getting a typescript error saying user doesn't exists
I've been trying to extend the interface to include the type definitions of the req.user object but with no success.
If anyone's done this or knows how to achieve this I would really appreciate it.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions