Skip to content

Retrieving an Auth "Refresh" Token #117

Answered by kuylar
kevinfiol asked this question in Q&A
Discussion options

You must be logged in to vote

Just checked, and the requests appear on my side. Though I have found out that the user agent in the wiki does not work anymore. Can you try with this one? Mozilla/5.0 (PlayStation; PlayStation 4/8.50) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15

If you still cannot see the requests, after a successful log in, you should try runing these scripts in the javascript console. The output should be the value you need

JSON.parse(localStorage.getItem("yt.leanback.default::last-identity-used")).data.identityCredentials.refreshToken
var data = JSON.parse(localStorage.getItem("yt.leanback.default::available-identities")).data;data[Object.keys(data)[0]].identityCredentials.re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kevinfiol
Comment options

@kuylar
Comment options

Answer selected by kevinfiol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants