Closed vincaslt closed 2 years ago
I'm implementing auth with https://github.com/gladly-team/next-firebase-auth and it requires to decorate both getServerSideProps and the component with their HOFs.
export const getServerSideProps = withAuthUserTokenSSR({ whenUnauthed: AuthAction.REDIRECT_TO_LOGIN, })(async ({ AuthUser }) => { ... return { props, }; }); export default withAuthUser<ServerSideProps>()(Component);
My payload includes Date and I logged it in the component - it's string.
Hi @vincaslt! Thank you for opening this issue. I published a fix in v0.4.1, let me know if that didn't work.
I'm implementing auth with https://github.com/gladly-team/next-firebase-auth and it requires to decorate both getServerSideProps and the component with their HOFs.
My payload includes Date and I logged it in the component - it's string.