DEV Community

Discussion on: Easy user authentication with Next.js

Collapse
 
akanshsirohi profile image
Akansh Sirohi

Very great, simple and useful example, but am not able to understand that how we could write a decorator/HoC that wraps getServerSideProps and performs the session validation in a reusable way, can anyone here give an example of that related to this example here.