canaria3406 / hoyolab-auto-sign

A lightweight, secure, and free script that automatically collect Hoyolab daily check in rewards. Supports Genshin Impact, Honkai Impact 3rd, and Honkai: Star Rail.
MIT License
332 stars 40 forks source link

get token v2 doesnt work, i find it mannually #29

Open AureliusGemini opened 6 months ago

AureliusGemini commented 6 months ago

i have a account that says "not logged in" so i tried to get the token again and this happened: get prompt

my temporary solution: inspect>application>filter

canaria3406 commented 6 months ago

[!IMPORTANT] HoYoLAB has changed the cookie to HttpOnly cookie. It is no longer possible to read the cookies by using the getToken.js code.
Please use the method of manually copying the cookie to obtain the ltoken_v2 and ltuid_v2.

just copy the ltoken_v2 and ltuid_v2 cookie.

decchan28 commented 6 months ago

Important

HoYoLAB has changed the cookie to HttpOnly cookie. It is no longer possible to read the cookies by using the getToken.js code. Please use the method of manually copying the cookie to obtain the ltoken_v2 and ltuid_v2.

just copy the ltoken_v2 and ltuid_v2 cookie.

Can u show me how to use the method of manually copying the cookie to obtain the ltoken_v2 and ltuid_v2, please?

canaria3406 commented 6 months ago

Can u show me how to use the method of manually copying the cookie to obtain the ltoken_v2 and ltuid_v2, please?

Here is the detail: https://github.com/Joshua-Noakes1/mei-cards#2-getting-your-hoyolab-cookies

decchan28 commented 6 months ago

Can u show me how to use the method of manually copying the cookie to obtain the ltoken_v2 and ltuid_v2, please?

Here is the detail: https://github.com/Joshua-Noakes1/mei-cards#2-getting-your-hoyolab-cookies

Thank you so much xD