[Bug]: First request on page load doesn't include token #2907

Closed
opened 2026-04-25 00:11:45 +02:00 by adam · 1 comment
Owner

Originally created by @advplyr on GitHub (Jul 18, 2025).

What happened?

On page load the first request to the server doesn't include the access token so the server returns a 401. The web client then refreshes the token and makes the request again.

What did you expect to happen?

After the /authorize call is successful the access token needs to get set in user store to be used on the first request.

Steps to reproduce the issue

  1. After login refresh the page
  2. Observe the network calls
Image

Audiobookshelf version

v2.26.1

How are you running audiobookshelf?

Built from source

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs


Additional Notes

No response

Originally created by @advplyr on GitHub (Jul 18, 2025). ### What happened? On page load the first request to the server doesn't include the access token so the server returns a 401. The web client then refreshes the token and makes the request again. ### What did you expect to happen? After the `/authorize` call is successful the access token needs to get set in user store to be used on the first request. ### Steps to reproduce the issue 1. After login refresh the page 2. Observe the network calls <img width="357" height="197" alt="Image" src="https://github.com/user-attachments/assets/69e50242-ef4b-4415-b5a7-1afe8eb59831" /> ### Audiobookshelf version v2.26.1 ### How are you running audiobookshelf? Built from source ### What OS is your Audiobookshelf server hosted from? Windows ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:11:45 +02:00
adam closed this issue 2026-04-25 00:11:45 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 22, 2025):

Fixed in v2.26.2.

@github-actions[bot] commented on GitHub (Jul 22, 2025): Fixed in [v2.26.2](https://github.com/advplyr/audiobookshelf/releases/tag/v2.26.2).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2907