Server Side Rendering
This page uses the universal getSession() method in getServerSideProps().
Using getSession() in getServerSideProps() is the recommended approach if you need to support Server Side Rendering with authentication.
The advantage of Server Side Rendering is this page does not require client side JavaScript.
The disadvantage of Server Side Rendering is that this page is slower to render.