diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b47d8ea..a539248 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -98,13 +98,8 @@ export async function getServerSideProps({ req, res }) { try { const cookieExists = getCookie("token", { req, res }); console.log("cookie Exists:" + cookieExists); - if (cookieExists) - return { props: { - authd: true // set isAuthentic propoerty to true using redux - } }; + return { props: {} }; // set isAuthentic property to true using redux } catch (err) { - return { props: { - error: err - } }; + return { props: {} }; } }