YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

Session.logged_in to reflect YouTube logged-in state when creating an Innertube instance with a cookie.

Open gatecrasher777 opened this issue 8 months ago • 0 comments

Currently if you supply a cookie when creating an Innertube instance, innertube.session.logged_in = true, whether the cookie is from a logged-in session or not.

This one-liner will use the responseContext of the initial innertube config POST to set logged_in = !LoggedOut

gatecrasher777 avatar Apr 25 '25 00:04 gatecrasher777