• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

126
Views
JWT mobile and web login with different tokens

We have two client side application

1.Web app(Single page application).

2.Mobile (android and ios)

Both clients are powered by REST api (Express js) with JWT authentication.

My question about being login process.

1.When the user is logged in from mobile we return the JWT token for further api requests.

2.When user logged in from the web (already logged in mobile and issued a token) older token is replaced with new JWT token. So the problem is mobile login is invalidated because we uses the same JWT token for both (web and mobile)

How to keep track the separate logins for web and mobile in JWT.

over 3 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error