Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
155
rated 0 times [  156] [ 1]  / answers: 1 / hits: 6151  / 2 Years ago, fri, may 20, 2022, 12:00:00

I am developing an application in React - Express - Mongo, how can i keep the user logged even after the browser is closed or page is refreshed?


More From » node.js

 Answers
6

Store JWT Token in LocalStorage or Cookies. That's the Simplest way.


check out here - https://www.freecodecamp.org/news/how-to-persist-a-logged-in-user-in-react/


[#131] Wednesday, May 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dominickmackenziet

Total Points: 583
Total Questions: 101
Total Answers: 117

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
dominickmackenziet questions
Wed, Apr 7, 21, 00:00, 3 Years ago
Fri, Feb 12, 21, 00:00, 3 Years ago
Mon, Jun 29, 20, 00:00, 4 Years ago
;