mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[PR #1694] [MERGED] Allow edited access tokens to be set to never expire #1693
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#1693
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?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1694
Author: @ShipItAndPray
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @binwiederhier
Base:
main← Head:fix/token-expiration-never-edit📝 Commits (1)
4b0a4eeweb: allow setting token expiration to never when editing📊 Changes
2 files changed (+11 additions, -2 deletions)
View changed files
📝
server/server_account_test.go(+9 -0)📝
web/src/app/AccountApi.js(+2 -2)📄 Description
Summary
This fixes the web account token editor so an existing token can be changed to never expire.
Before this change, the edit dialog offered a "never" option, but the PATCH request omitted the
expiresfield when0was selected. The server interpreted that as "leave unchanged", so the expiration could only be moved to a future timestamp, not to no expiration.Changes included:
expires: 0from the web client when the edit dialog selects "never"PATCH /v1/account/tokenwithexpires: 0Closes #1693.
Validation
git diff --checkcd web && npm cicd web && npm run lint -- --ext .js,.jsx ./src/app/AccountApi.js ./src/components/Account.jsxNotes:
go1.13, while the repo declaresgo 1.25.0, so I did not claim a meaningful localgo testrun from this machine.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.