idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.56k stars 2.02k forks source link

Profile Updates Trigger Unexpected Logout on Page Refresh #1163

Open avishusa opened 2 months ago

avishusa commented 2 months ago

Describe the bug When making updates on the 'Profile' page and saving them, refreshing the page redirects users to the login screen. This suggests that session persistence may be failing, causing users to lose their authenticated state after a refresh.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Profile'.
  2. Click on 'Edit'.
  3. Edit some Personal details and save it.
  4. After that refresh the page and you will be redirected to the login page.

Expected behavior It should not be redirecting to the log in page, it should stay on the same page i.e. Profile.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context This might be issue of a token. It should not get changed after making any updates.

SunkePavanKumar commented 2 months ago

In local it is working fine. I cannot reproduce the issue. Attaching a video for the same.

https://github.com/user-attachments/assets/1c0a8d08-393e-4bc5-9555-6ebc14990f79

bas629 commented 2 months ago

yes ,I see

avishusa commented 2 months ago

I see. I have tried to run this on my local and it is working well. But on the website it is giving the issue.

Pushpender1122 commented 1 month ago

Hey @avishusa, I noticed a bug I want to help. However, I couldn't find the register route when I cloned the repo. Please clarify if it's missing, or point me to where it should be. Thanks!