Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: authtoken.ts does not throw or show error in addToken function

Closed Beginner friendly
#62,680 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ELHart05 is already working on this.

Since Aug 12, 2026.

  • #63189 by @ELHart05 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start with apps/settings/src/store/authtoken.ts and inspect the addToken error path, then compare how the other functions in that file report failures. Read apps/settings/src/components/AuthTokenSetup.vue to follow its catch handling and reproduce the issue by blocking the /settings/personal/authtokens endpoint. Done means token creation failures result in an error being shown to the user.

Written by the indexing model from the issue text.

Description

0. Needs triage 35-feedback bug feature: settings papercut
⚠️ This issue respects the following points: ⚠️
Bug description

In apps/settings/src/store/authtoken.ts the addToken function does not throw an error to be used by apps/settings/src/components/AuthTokenSetup.vue the catch section of the code is basically deed code, as the function catches any error and returns null, which is not handled by AuthTokenSetup.vue, it tries to catch an error which is never thrown, and it does not show the error unlike the other functions in the authtoken.ts file.

Steps to reproduce
  1. Block the '/settings/personal/authtokens' endpoint in the browser, or disable it the server.
  2. Try to create a new device token, an error is never shown.
Expected behavior

Show an error for the user

Nextcloud Server version

35 (master)

Operating system

RHEL/CentOS

PHP engine version

PHP 8.5

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Dominant language
PHP
Stars
37k
Forks
5.3k
Avg merge
2d 6h
Merged PRs (30d)
702

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/server

All issues in nextcloud/server

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.