mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1361] Allow login to web app with token #960
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @helmut72 on GitHub (Jun 1, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1361
💡 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.
@audstanley commented on GitHub (Jun 7, 2025):
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?
@anoniuuiti commented on GitHub (Sep 7, 2025):
@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.
@helmut72 commented on GitHub (Sep 8, 2025):
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 commented on GitHub (Sep 8, 2025):
There will be random tokens generated. Only description can be edited.
@anoniuuiti commented on GitHub (Sep 8, 2025):
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.
@helmut72 commented on GitHub (Sep 9, 2025):
@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 ;)
@helmut72 commented on GitHub (Sep 25, 2025):
@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.