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:
Login in
Navigate to any page, e.g. /profile
Wait until JWT expires
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):
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:
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):