Notifications & 401 #44

Closed
opened 2025-11-01 20:45:18 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @tamaskan on GitHub (Apr 12, 2022).

Hi, i have a strange issue:

Frontend: 0.18.2
Api: 0.18.1

Usually after a few days i get the constant "invalid or expired jwt"-Message from /api/v1/notifications on Firefox. Everything else works and uses the new token, but this request keeps using the expired one.

Originally created by @tamaskan on GitHub (Apr 12, 2022). Hi, i have a strange issue: Frontend: 0.18.2 Api: 0.18.1 Usually after a few days i get the constant "invalid or expired jwt"-Message from /api/v1/notifications on Firefox. Everything else works and uses the new token, but this request keeps using the expired one.
Author
Owner

@kolaente commented on GitHub (Apr 18, 2022):

If you log out and back in again, does it work? Or do you get the same error message?

Can you reproduce this on try?

@kolaente commented on GitHub (Apr 18, 2022): If you log out and back in again, does it work? Or do you get the same error message? Can you reproduce this on [try](https://try.vikunja.io)?
Author
Owner

@tamaskan commented on GitHub (Apr 18, 2022):

i usually refresh the page and everything works again, but i will try the demo-installation

@tamaskan commented on GitHub (Apr 18, 2022): i usually refresh the page and everything works again, but i will try the demo-installation
Author
Owner

@tamaskan commented on GitHub (Apr 22, 2022):

vikunja

Tried it with the demo-installation and it's the same result. Does the window need to be in focus ? I just have a new browser-window on another monitor and don't interact with it.

@tamaskan commented on GitHub (Apr 22, 2022): ![vikunja](https://user-images.githubusercontent.com/3661769/164714697-0b67052b-47fc-431c-9aa2-f7f44521ef93.png) Tried it with the demo-installation and it's the same result. Does the window need to be in focus ? I just have a new browser-window on another monitor and don't interact with it.
Author
Owner

@kolaente commented on GitHub (Apr 25, 2022):

It should refresh the session every time you bring the window in focus and it is about to expire. It looks like the notification polling does not use the refreshed session.

@kolaente commented on GitHub (Apr 25, 2022): It should refresh the session every time you bring the window in focus and it is about to expire. It looks like the notification polling does not use the refreshed session.
Author
Owner

@tamaskan commented on GitHub (Apr 25, 2022):

it won't be an issue for me when the new version comes out and i can set a multiple year long jwt.
i don't know if other people are using it like i do, but it shouldn't be an issue for the vast majority of users.

@tamaskan commented on GitHub (Apr 25, 2022): it won't be an issue for me when the new version comes out and i can set a multiple year long jwt. i don't know if other people are using it like i do, but it shouldn't be an issue for the vast majority of users.
Author
Owner

@kolaente commented on GitHub (May 10, 2022):

Should be fixed in 3e7f598ee8 - please verify on try if it is solved. Feel free to ping if you have other issues or it still does not work.

@kolaente commented on GitHub (May 10, 2022): Should be fixed in 3e7f598ee8858b201f7c4492e2fb3aa78ba782ea - please verify on try if it is solved. Feel free to ping if you have other issues or it still does not work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#44