YouTube.js
YouTube.js copied to clipboard
Session.logged_in to reflect YouTube logged-in state when creating an Innertube instance with a cookie.
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