Pre-render page using getServerSideProps after user login

Hi,
I’m new in NextJS, and I’m developing app where i want pre-render home page after login. Here in home page my API call need user token which is stored at local storage. So i’m not getting how to pre-render home page using getServerSideProps.
Can yo…


This content originally appeared on DEV Community and was authored by anilsculptsoft

Hi,
I'm new in NextJS, and I'm developing app where i want pre-render home page after login. Here in home page my API call need user token which is stored at local storage. So i'm not getting how to pre-render home page using getServerSideProps.
Can you please explain?
Thank you.


This content originally appeared on DEV Community and was authored by anilsculptsoft


Print Share Comment Cite Upload Translate Updates
APA

anilsculptsoft | Sciencx (2022-04-05T04:26:25+00:00) Pre-render page using getServerSideProps after user login. Retrieved from https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/

MLA
" » Pre-render page using getServerSideProps after user login." anilsculptsoft | Sciencx - Tuesday April 5, 2022, https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/
HARVARD
anilsculptsoft | Sciencx Tuesday April 5, 2022 » Pre-render page using getServerSideProps after user login., viewed ,<https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/>
VANCOUVER
anilsculptsoft | Sciencx - » Pre-render page using getServerSideProps after user login. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/
CHICAGO
" » Pre-render page using getServerSideProps after user login." anilsculptsoft | Sciencx - Accessed . https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/
IEEE
" » Pre-render page using getServerSideProps after user login." anilsculptsoft | Sciencx [Online]. Available: https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/. [Accessed: ]
rf:citation
» Pre-render page using getServerSideProps after user login | anilsculptsoft | Sciencx | https://www.scien.cx/2022/04/05/pre-render-page-using-getserversideprops-after-user-login/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.