question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Another way to authenticate?

See original GitHub issue

Hello 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thesadrucommented, Apr 26, 2021

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 the cookie_token and account_id from a login ticket.

0reactions
alwaysmdacommented, Apr 26, 2021

Although I cannot get the ltoken and ltuid, but the new api to get old cookie data using login_ticket is very good!! I hope they don’t remove cookie_token and account_id anytime soon 😄

Please let me know if you found any other ways to get new cookies.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found