Another way to authenticate?
See original GitHub issueHello again 😄
I’m trying to use api info to create an Android application to show user’s info.
Unfortunately I cannot get the ltoken
and ltuid
cookies from device.
Maybe it’s because they are secured values.
There is a website https://genshin-wishes.com/
that uses the feedback link to authenticate and shows detailed gacha logs.
I wonder if we can use this method to access apis.
Thank you!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to Log Into Facebook If You Lost Access to Code Generator
Code Generator is a convenient way to access two-factor authentication codes without a mobile number. The tool will come in handy when you're...
Read more >How two-factor authentication works on Facebook.
When you set up two-factor authentication on Facebook, you'll be asked to choose one of three security methods: Tapping your security key on...
Read more >Authentication Tools for Secure Sign In - Google Safety Center
Learn how our authentication tools and services help you sign in securely. ... The safer way to sign in to all of your...
Read more >What Is Two-Factor Authentication (2FA)? - Authy
Two Factor Authentication, or 2FA, is an extra layer of protection used to ensure the security of online accounts beyond just a username...
Read more >Authentication options | Login.gov
If you lose access to your primary authentication method (i.e. losing your phone), you'll have a second option to use to get access...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I installed Firefox to look into this and yeah, it seems like the cookies are only for
api-os-takumi.mihoyo.com
. I have no idea how or why are firefox and chrome giving different results. For some reason, I can see the results fine mihoyo’s website, but not from the account login. After a bit of messing around, I somehow managed to get the ltoken from… somewhere.For the time being, you can use the cookie_token and account_id, as they seem to just be some sort of backwards compatibility thing. My API still works with those but I’ll try to update the readme so people can know you can use both.
You can also use
https://webapi-os.account.mihoyo.com/Api/cookie_accountinfo_by_loginticket?login_ticket=<LOGIN_TICKET>
to get thecookie_token
andaccount_id
from a login ticket.Although I cannot get the
ltoken
andltuid
, but the new api to get old cookie data usinglogin_ticket
is very good!! I hope they don’t removecookie_token
andaccount_id
anytime soon 😄Please let me know if you found any other ways to get new cookies.