tohuwabohu-io / librefit

OpenSource calorie tracker using kotlin, quarkus, postgresql, SvelteKit and OpenAPI 3
https://libre.fit/
GNU General Public License v3.0
1 stars 0 forks source link

JWT rotation for rest calls #79

Closed tohuwabohu-io closed 1 month ago

tohuwabohu-io commented 2 months ago

Describe the bug Token refresh happens only on navigating routes. Staying in a page too long before interacting pops an error message upon trying to change data.

To Reproduce Steps to reproduce the behavior:

  1. Login in
  2. Navigate to any page, e.g. /profile
  3. Wait until JWT expires
  4. Change profile data and click save

Expected behavior The action on save should succeed when the JWT expired and the token should be rotated. No error message should be displayed in that case.

Desktop (please complete the following information):

tohuwabohu-io commented 1 month ago

the preconditions changed, behaviour is superseded by #87 and will be reviewed in #90