misc helper updates

This commit is contained in:
2024-04-22 13:11:29 +01:00
parent 147299ba78
commit af2b7f2063
5 changed files with 21 additions and 2 deletions
+6
View File
@@ -78,6 +78,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
const { cookies } = req;
let loggedInUser = cookies.pinsUser;
const showLoginCheck = process.env.SHOWLOGIN || false;
let thisSession = await getSession(ctx);
@@ -109,6 +110,11 @@ export const getServerSideProps = wrapper.getServerSideProps(
thisSession != false &&
store.dispatch(setContainerID(thisSession.user.id));
}
return {
props: {
showLoginCheck: showLoginCheck,
},
};
}
);