medic / cht-release-testing

Used to track release testing on medic projects
2 stars 0 forks source link

Token's nearing expiration should be renewed when syncing. #87

Open newtewt opened 4 years ago

newtewt commented 4 years ago

See: https://github.com/medic/cht-core/issues/6583

  1. Log in as a CHP. If you check the cookies in the browser you should see the userCtx cookie is set with an expiry exactly 1 year in the future.
  2. Modify your local date to be around 10 months in the future
  3. Refresh the page
  4. The app reloads correctly. Wait a few minutes for the various requests to complete. Expected behavior: the userCtx cookie expiry has been renewed to 1 year from the new date.
  5. Modify your local date to be another 6 months in the future
  6. Refresh the page
  7. User is still logged in fine. the userCtx cookie should have a new expiration date.
ngaruko commented 3 years ago

testing for 3.10.4-beta-1. Original cookie expires 7 July 22 image Advance local clock to 10 months ... Refresh... Reload ... Wait and check again ... New expiry date is 10 May 2023 - image

Add another 6 months... user still logged on (with usual warning, cookie updated) image