Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
How to keep user logged (mongoDB, React, JWT?)

mongoDB - realm-web

How to keep user stay logged after reload a page. It's not a simple as I thought.

  1. User is registered by email and password, then logged in.
  2. User is reloading a page.
  3. I have a JWT configuration to store token on my local storage.
  4. When token is verified, I am authenticating him by JWT authentication, returning THIS user.
  5. After this, on appUsers on mongo, I see cloned user authenticated again by JWT... what....

How to keep this user logged using only email and password authentication, I don't want to put a password parameter to JWT, then decode a token, then auth a user by encoded email and password. And I don't want a cloned user, of course.

Thanks for any answer.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!