NextJS - Login Redirect based on user role

Thanks so much for the details. I think I’m getting closer to understanding.

How do you direct to another page exactly from the getServerSideProps you’re mentioning?

I’m able to extract the details of the session including the user and its role attached, but not sure how to redirect conditionally based on his role now.