torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
75 stars 17 forks source link

ZZZ Cookie does not contain account_id_v2 and cookie_token_v2 #14

Closed YozenPL closed 2 months ago

YozenPL commented 2 months ago

ZZZ Cookie does not contain account_id_v2 and cookie_token_v2. Adding them manually does not solve the problem.

No cookie_token_v2 or account_mid_v2 found in cookie for nap. This will disable "redeemCode" functionality.

I suggest to add option to read config in old way as an additional functionality.

            cookie: {
                token: "", // cookie_token_v2
                mid: "", // account_mid_v2
                ltuid: "" // ltuid_v2
            },
torikushiii commented 2 months ago

Yes, that is expected. As of commit 11218fe017754bf1fed7b99ce8d47cf5b48b1b75, I've changed how cookies work. You'll need to redo the cookie guide again, but this time it's much simpler.

YozenPL commented 2 months ago

I get it, it might be strange but my account which I use for Genshin does have cookie_token_v2 and account_mid_v2 in "Cookie" but my new account which I use for ZZZ does not have it. I can extract those values using the "old" method only.

torikushiii commented 2 months ago

I'm assuming that you already tried logging in using incognito mode?

YozenPL commented 2 months ago

I'm assuming that you already tried logging in using incognito mode?

I did it after your suggestion. Now I have those values. Thank you.