[Bug]: Can't use Websockets with AUTH_AT_FIRST #3902

Open
opened 2025-09-16 14:05:55 +00:00 by PiR1 · 0 comments
PiR1 commented 2025-09-16 14:05:55 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.11.0

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11 version 24H2

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. Enable Server API plugin
  2. Use Authorization strategy: Authorize at first request
  3. Try to use websockets

Expected Behavior

Implement a way to authenticate through Websocket
May be with token in query params, or with a ticketing system

Actual Behavior

Can't pass access token, so can't pass Hono JWT middleware
c9ae7cb277/src/plugins/api-server/backend/main.ts (L91)

Enabled plugins

  1. API Server

Additional Information

No response

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.11.0 ### Checklists - [x] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 11 version 24H2 ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps 1. Enable Server API plugin 2. Use Authorization strategy: Authorize at first request 3. Try to use websockets ### Expected Behavior Implement a way to authenticate through Websocket May be with token in query params, or with a ticketing system ### Actual Behavior Can't pass access token, so can't pass Hono JWT middleware https://github.com/th-ch/youtube-music/blob/c9ae7cb27769820fd5cedb70e70a83557c81e270/src/plugins/api-server/backend/main.ts#L91 ### Enabled plugins 1. API Server ### Additional Information _No response_
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: YTMD/youtube-music#3902
No description provided.