Use living room potoken identity

This commit is contained in:
Brahim Hadriche committed 2026-06-28 14:56:17 -04:00
1 parent 5c5fe19440
commit 4754e1620b
18 files changed
+233 -253

No files matched your search

@@ -248,7 +248,6 @@ namespace Innertube
"accountByline": ParseText(accountItem["accountByline"])
"channelHandle": ParseText(accountItem["channelHandle"])
"activeIdentifyToken": ParseAccountItemIdentityToken(accountItem)
"selectActiveIdentityEndpoint": ValidAssociativeArray(ObjectUtils.Dig(accountItem, ["serviceEndpoint", "selectActiveIdentityEndpoint"]))
}
parsedAccounts.Push(parsedAccount)
end for
@@ -298,26 +297,6 @@ namespace Innertube
return ""
end function
function GetDatasyncIdToken(selectActiveIdentityEndpoint as object) as string
supportedTokens = ObjectUtils.Dig(selectActiveIdentityEndpoint, ["supportedTokens"])
if not IsArray(supportedTokens)
return ""
end if
for each supportedToken in supportedTokens
if not IsAssociativeArray(supportedToken)
continue for
end if
datasyncIdToken = ObjectUtils.Dig(supportedToken, ["datasyncIdToken", "datasyncIdToken"])
if not StringUtils.IsNullOrEmpty(datasyncIdToken)
return datasyncIdToken
end if
end for
return ""
end function
function ToCamelCase(obj as object) as object
if not IsAssociativeArray(obj)
return obj