Files
Snap.Hutao.Docs/docs/en/advanced/get-stoken-cookie-from-the-third-party.md
Mikachu2333 b8ceb907c7 QA Update (#133)
* update

* win10 uninstall

* add notes about root

* format

* modify

* update

* Update FAQ.md

* Update navbar

* Update docs

* Update Gacha-system-and-export-principal.md

* correct

* update

* disambig

* update

* add warning for auto-start (need re-update)

* update

* add a tabular for showing differences in each way for sync

* center tabular

* switch to md format

* update vs

* add some

* RE-update tabualr

* update

* correct

* update

* move web login to the end

* Update game-launcher.md

* Update docs

* Update character-data.md

---------

Co-authored-by: LinkChou <linkchou@yandex.com>
Co-authored-by: Masterain <i@irain.in>
2024-06-29 00:18:14 -07:00

2.6 KiB

category, icon, order, comment, description, banner
category icon order comment description banner
FAQ
Third-Party Tools
iconfont icon-read 7 false There are some third-party tools that can help you obtain the cookie from the miHoYo community with the Stoken field value and use it for Snap Hutao. https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html&has_description=False

Obtaining Stoken-containing Cookies Using Third-Party Tools

::: warning

  • The software, open-source projects, and resources mentioned in the following steps are sourced from the internet and are not affiliated with DGP-Studio.
  • This documentation provides solutions for educational purposes only. Specific operations and their consequences are not associated with this project.

:::

Android

Android users can utilize the open-source project GetToken to acquire cookies containing the Stoken field.

::: tip GetToken Open-Source Project

:::

  • The GetToken project's release includes two APK files, both ultimately achieving the same outcome. Choose the version suitable for your device:
    • app-release.apk is an LSPosed plugin that enables users to use GetToken functionality within the official miHoYo community app.
    • APK files ending with lspatched are modified versions of the miHoYo community app with GetToken functionality included.
      • You'll need to uninstall the official miHoYo app to install this version.
  • After enabling the plugin or installing the modified miHoYo app, open the miHoYo app, click "Me" at the bottom, and log in to your account.
  • Click 🔑 icon in the top right corner.
  • Check the Stoken option.
  • Click Copy Login Information.
  • Send the copied Stoken to the computer where the Snap Hutao is installed.
  • In the Snap Hutao's account login section, click Manual Input.
  • Enter the previously obtained cookie. You should now complete the login process.

iOS

iOS Users can download the packet capture software Stream from the App Store to obtain cookies containing the Stoken field.

  • Download Stream from the App Store.
  • Perform packet capture analysis on the domain api-takumi.mihoyo.com.
  • Locate and copy the data containing Stoken.
    • It will be in the form of stuid=****;stoken=v2****;mid=****;.
  • Send the copied Stoken to the computer where the Snap Hutao is installed.
  • In the Snap Hutao's account login section, click Manual Input.
  • Enter the obtained cookie. You should now complete the login process.