I have an app that uses DB sessions. I've got an /admin route that I want to protect using a Next.js middleware by checking the user's role, but I can't do this because I don't have access to 'user' obj.
How can I do this right without having to copy-paste a block of getServerSideProps?