Oh, thanks a lot! I understand it. That was very explaining thanks again. I will continue using middleware and I will consider other options whenever I need it but last question, would you share some situations?
Just a context for you, I am building a fintech web-app like Square(
https://squareup.com/ ) to practice and that is generally the app type I build mostly, dashboard, POS transactions type of stuff ,B2B stuff etc.
But other than the cases I wonder,
(
Using getServerSideProps or other server-side or client-side authentication checks (like checking authentication status in a React component) can provide more granular control over the rendering and access to your pages. These methods can be particularly useful for handling specific scenarios or providing fallbacks in case the middleware approach encounters limitations.
) you definitely helped me.