mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #708] OAuth Web client does not work #461
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pranavbhandari24 on GitHub (Dec 29, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/708
Issue
When using the client ID and client secret for Oauth, if the client ID is a webclient
ytmusicapi oauthfails withI also tried to create
oauth.jsonmanually (by generating the access token but I get 401 Unauthorized errorTo Reproduce
Create a Web OAuth client and use that in
ytmusicapi oauthNote: If the client is a TV client, everything works as expected. I need a web client to specify callback urls
@pranavbhandari24 commented on GitHub (Dec 30, 2024):
Oh, this was my mistake. I was not adding the "expires_at" and "expires_in" to the manually created oauth.json. Once I added those the requests worked as expected.
ytmusicapi oauthstill fails when using web oauth client though.@sigma67 commented on GitHub (Dec 31, 2024):
Could you elaborate?
@pranavbhandari24 commented on GitHub (Jan 24, 2025):
ytmusicapi oauthcommand fails when I provide Web OAuth client, but works as expected when I provide a TV Oauth client@sigma67 commented on GitHub (Jan 24, 2025):
@pranavbhandari24 that is expected, hence the advice in the documentation to create TV credentials
https://ytmusicapi.readthedocs.io/en/stable/setup/oauth.html