[GH-ISSUE #1308] Cannot create more than 20 access tokens #929

Closed
opened 2026-05-07 00:28:51 +02:00 by BreizhHardware · 5 comments

Originally created by @Zottelchen on GitHub (Apr 6, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1308

🐞 Describe the bug
When I create the 21st access token, another is deleted.

💻 Components impacted
Web app

🔮 Additional context

  1. I would like to create more tokens (and ideally scope them, but that's another topic) - this way I could give every application its own token.
  2. If that doesn't work because too many tokens already exist, I would expect a message telling me so instead of just deleting another one.
Originally created by @Zottelchen on GitHub (Apr 6, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1308 :lady_beetle: **Describe the bug** When I create the 21st access token, another is deleted. :computer: **Components impacted** Web app :crystal_ball: **Additional context** 1. I would like to create more tokens (and ideally scope them, but that's another topic) - this way I could give every application its own token. 2. If that doesn't work because too many tokens already exist, I would expect a message telling me so instead of just deleting another one.
BreizhHardware 2026-05-07 00:28:51 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@wunter8 commented on GitHub (Apr 6, 2025):

20 tokens is the hard-coded limit for now: github.com/binwiederhier/ntfy@630f2957de/user/manager.go (L31)

It probably wouldn't be too hard to make that configurable. But we should also at least put a note in the documentation

<!-- gh-comment-id:2781434352 --> @wunter8 commented on GitHub (Apr 6, 2025): 20 tokens is the hard-coded limit for now: https://github.com/binwiederhier/ntfy/blob/630f2957deb670dcacfe0a338091d7561f176b9c/user/manager.go#L31 It probably wouldn't be too hard to make that configurable. But we should also at least put a note in the documentation
Author
Owner

@Zottelchen commented on GitHub (Apr 6, 2025):

Yeah, making it configurable would be great :)

No matter the limit, it should at least tell you what is happening and ideally block it. I unknowingly broke multiple workflows and now have to change numerous tokens.

<!-- gh-comment-id:2781447993 --> @Zottelchen commented on GitHub (Apr 6, 2025): Yeah, making it configurable would be great :) No matter the limit, it should at least tell you what is happening and ideally block it. I unknowingly broke multiple workflows and now have to change numerous tokens.
Author
Owner

@wunter8 commented on GitHub (Apr 6, 2025):

How were you creating the new tokens? Via ntfy token in a terminal? Via the web app user account page?

<!-- gh-comment-id:2781449328 --> @wunter8 commented on GitHub (Apr 6, 2025): How were you creating the new tokens? Via `ntfy token` in a terminal? Via the web app user account page?
Author
Owner

@Zottelchen commented on GitHub (Apr 6, 2025):

Via Web App

<!-- gh-comment-id:2781449591 --> @Zottelchen commented on GitHub (Apr 6, 2025): Via Web App
Author
Owner

@binwiederhier commented on GitHub (May 25, 2025):

I bumped the number to 60: github.com/binwiederhier/ntfy@0de1990c01

<!-- gh-comment-id:2907925357 --> @binwiederhier commented on GitHub (May 25, 2025): I bumped the number to 60: https://github.com/binwiederhier/ntfy/commit/0de1990c0115f04620f73b9106830397fc8f4f64
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#929
No description provided.