Allow login to web app with token
:bulb: Idea While using other web apps, where I have installed them to my homescreen, I never need to login again even when not using them for weeks. But ntfy force me to login after 3-4 days.
Would be cool to be able to modify expire time of tokens of this sessions or being able to login with token instead of password to the web app.
Thank you.
I'm not on the dev team - but i don't follow. I've installed ntfy as a Progressive Web App (PWA) using firefox and a firefox extension. I'm pretty sure my login is stored in the web application, and no token is needed - are you clearing your browser cache?
@helmut72 I get an idea but not entirely sure whether it works 100% correct. Login PWA using user name and pw ==> observe token for current PWA session ==> manually create token via config file w/ same token observed ==> restart ntfy instance ==> that token created would come w/ "Never Expire" session.
I'm not on the dev team - but i don't follow. I've installed ntfy as a Progressive Web App (PWA) using firefox and a firefox extension. I'm pretty sure my login is stored in the web application, and no token is needed - are you clearing your browser cache?
I'm not clearing any browser cache. Do you have tried it on a mobile phone, Safari on iPhone, Samsung Internet on a Samsung Android phone or any other mobile device with a browser, that supports webpush? After a few days, session is invalid, never get any push messages and need to login again.
Using a desktop browser is more or less useless, because I want to be especially notified when not in front of a PC. Also I don't want to be flooded with messages and it's possible, that I don't get ones for several days.
@helmut72 I get an idea but not entirely sure whether it works 100% correct. Login PWA using user name and pw ==> observe token for current PWA session ==> manually create token via config file w/ same token observed ==> restart ntfy instance ==> that token created would come w/ "Never Expire" session.
There will be random tokens generated. Only description can be edited.
@helmut72 I get an idea but not entirely sure whether it works 100% correct. Login PWA using user name and pw ==> observe token for current PWA session ==> manually create token via config file w/ same token observed ==> restart ntfy instance ==> that token created would come w/ "Never Expire" session.
There will be random tokens generated. Only description can be edited.
https://docs.ntfy.sh/config/#tokens-via-the-config I guess you can take a look at this. The token part should be capable of being manually edited.
@anoniuuiti Now I know what you mean. I've added this, now it reads never expire and will test it after few days. Thanks. But even if this works, it's a crazy workaround ;)
@anoniuuiti Tried it today and it even works after this many days!! Received the push message and no need to login on Android and iOS :)
It would be cool not to use this crazy workaround and just set to "never expires" from the webui or have "never expires" as a default setting for every token.