-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled 401 Error "Bricks" App #45
Comments
Yes, the JWT key is set by default to 259200 (three days). The error is caused by the absence of an automatically issued JWT key if you don't log in for three days. You can try setting this value to 2592000, while also ensuring a login every month. |
Another option would be to use the frontend to login and then check the "remember me" checkbox. |
You should be able to close messages like this by pressing the back button once. Then go to settings, click log out, and log in again. But yes, you're right, this shouldn't happen. |
Closed due to inactivity. Open a new issue if you still need help. |
The issue still persists. I don't think it is necessarily high priority but still. |
I remember having the same issue some time ago. My problem was that I did not have a JWTSecret set, and so every time vikunja restarted it was rotated and I was logged out. Does this happen in the web interface as well?
|
After consulting with @kolaente I've expanded the app token refresh in the upcoming release to the level of the frontend. Every time you start the app and automatically every 12 hours the token should be refreshed, so it should never expire. I haven't extensively tried it myself but the refreshing on app launch definitely works, so please do let me know whether you still experience this with 0.1.4-beta. |
The logout behaviour has definitely improved! Thanks a lot! Still I think it would make sense to redirect the user to the login screen when the token is invalid for whatever reason. Then the user will be able to just login without having to navigate to the settings with the constant popup. |
When changing your password via the webinterface the app tries to authenticate with the older credentials indefenitly.
![markup_285 (2).png](https://private-user-images.githubusercontent.com/38377070/271842516-014f0c83-0b6a-401e-a3a9-a538a75f0975.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MTY1OTMsIm5iZiI6MTcxOTYxNjI5MywicGF0aCI6Ii8zODM3NzA3MC8yNzE4NDI1MTYtMDE0ZjBjODMtMGI2YS00MDFlLWEzYTktYTUzOGE3NWYwOTc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDIzMTEzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2ZDUwYTZkNTQyZGUzMmYyNWU1NjJmYTVkYTMwZmZhZGQ0OTI5MjcwNzBkN2NlYTkzZGFmMDA1MDFmYjE2NmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kGaedU9BXfdCvIjX2dgyMEhkSxmF-3K6FuJCGxwq3EU)
There is no way to escape this loop other than reinstalling the app. Ideally one would be prompted with the login screen again.
The text was updated successfully, but these errors were encountered: