canaria3406/hoyolab-auto-sign

Cookie token code seems to have stopped working

Closed this issue · 3 comments

cd36th commented

Only returns "ltoken=undefined; ltuid=undefined;"

i test is works.
maybe you should try to log in again.

hoyolab

token
f12>console>Paste>get token

function getCookie(name) {
  const value = `; ${document.cookie}`;
  const parts = value.split(`; ${name}=`);
  if (parts.length === 2) return parts.pop().split(';').shift();
}
let token = 'ltoken=' + getCookie('ltoken') + '; ltuid=' + getCookie('ltuid') + ';';
let ask = confirm(token + '\n\nPress enter, then paste the token into your Google Apps Script Project');
if (ask == true) {
  copy(token);
  msg = token;
} else {
  msg = 'Cancel';
}
cd36th commented

ok yeah relogging worked thank you, didnt try that because genshin wizard which also uses tokens has disabled token stuff temporarily to fix things