1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{3895:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return n(9217)}])},9217:function(e,i,n){"use strict";n.r(i),n.d(i,{__N_SSP:function(){return o}});var s=n(5893),r=n(1261),t=n(3299),o=!0;i.default=()=>{let{status:e,data:i}=(0,t.useSession)({required:!1});return console.log(e,i),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.Z,{title:"Server",children:(0,s.jsxs)("blockquote",{children:[(0,s.jsx)("p",{children:"This page uses the universal getSession() method in getServerSideProps()."}),(0,s.jsx)("p",{children:"Using getSession() in getServerSideProps() is the recommended approach if you need to support Server Side Rendering with authentication."}),(0,s.jsx)("p",{children:"The advantage of Server Side Rendering is this page does not require client side JavaScript."}),(0,s.jsx)("p",{children:"The disadvantage of Server Side Rendering is that this page is slower to render."}),(0,s.jsx)("p",{children:"This page is protected using the useSession hook."}),(0,s.jsx)("p",{children:"Either way works."}),(0,s.jsxs)("p",{children:["But in this case the session is ",(0,s.jsx)("strong",{children:"not"})," available on the first render."]})]})})})}}},function(e){e.O(0,[664,261,774,888,179],function(){return e(e.s=3895)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.