Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Session): Add on_behalf_of_user session option #494

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

jeremyBanks
Copy link
Contributor

This adds support for manually specifying the onBehalfOfUser property in the session's Context.user, which specifies which channel to use if multiple users are associated with the logged-in account. This can be optionally specified when creating an Innertube instance in the same way as account_id is. I think this is only relevant if you're using a cookie session.

Profiles are identified with what might be called a "Page ID": when I use the account switcher in the YouTube UI to switch profiles, it's the I see in a redirect URL like https://www.youtube.com/signin?action_handle_signin=true&authuser=0&pageid=<THIS CHANNEL ID>, where we can see it referred to as pageid.

This specifies which channel to use if multiple are associated with the logged-in account.
Copy link
Owner

@LuanRT LuanRT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@LuanRT LuanRT merged commit 8bc2aaa into LuanRT:main Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants