Skip to content

fix: fetch token using @nextcloud/auth which updates the token on context#913

Merged
susnux merged 1 commit intomainfrom
fix/fetch-and-set-token
Apr 16, 2026
Merged

fix: fetch token using @nextcloud/auth which updates the token on context#913
susnux merged 1 commit intomainfrom
fix/fetch-and-set-token

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented Apr 13, 2026

When a new token needs to be fetched we should use the function from the library which automatically also sets the new token on the current context (global state).
It also handles calling the on-token-update events.

@susnux susnux added bug Something isn't working 3. to review labels Apr 13, 2026
Comment thread package.json Outdated
@susnux susnux force-pushed the fix/fetch-and-set-token branch from 82cb998 to 91a8850 Compare April 14, 2026 17:07
@susnux susnux marked this pull request as ready for review April 14, 2026 17:07
…ontext

When a new token needs to be fetched we should use the function from the
library which automatically also sets the new token on the current
context (global state).
It also handles calling the on-token-update events.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/fetch-and-set-token branch from 91a8850 to 96588b9 Compare April 15, 2026 20:08
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.30%. Comparing base (c35a05c) to head (96588b9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #913   +/-   ##
=======================================
  Coverage   87.30%   87.30%           
=======================================
  Files           5        5           
  Lines          63       63           
  Branches       19       19           
=======================================
  Hits           55       55           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@susnux susnux merged commit e1ddc89 into main Apr 16, 2026
9 checks passed
@susnux susnux deleted the fix/fetch-and-set-token branch April 16, 2026 11:14
@susnux susnux mentioned this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CSRF Check failed

2 participants