Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

❌ 登录验证失败的请看这里 #4

Open
1 of 1 issue completed
Open

Description

@idootop

如果你在使用时遇到提示 ❌ 小米账号登录失败,请按以下步骤操作:

1. 登录小米账号

在电脑上使用 Chrome 浏览器登录小米账号官网 👉 https://account.xiaomi.com

2. 获取 passToken

登录成功后,在小米账号官网:

  1. 网页空白处右键,选择【检查】打开开发者控制台
  2. 切换到 Application/应用栏,找到 Cookies 选项
  3. 在 Cookies 列表中找到 passToken,然后复制它的值

Caution

注意 passToken 相当于你的账号密码,不要泄漏给任何人!🚨

Image

3. 更新 speaker 参数

在你的 speaker 参数里,添加一下 passToken 参数,然后重新运行即可正常登录使用。

{
  speaker: {
    did: 'Xiaomi 智能音箱 Pro',
    userId: '1234567',
    password: 'xxxxx',
    passToken: '把你的 passToken 填到这里',
  },
  // ...
}

其他方案

最后,你也可以选择迁移至不再依赖任何小米账号/接口的刷机解决方案:

👉 https://github.com/idootop/open-xiaoai

Enjoy ;)

Activity

  1. pinned this issue on Apr 24, 2025
  2. nmww commented on May 12, 2025

    @nmww

    speaker 请问在哪里 2025年5月12日11:14:48

  3. hhun commented on May 22, 2025

    @hhun

    passToken 有实效性吧?有效期是7天还是30天?

  4. cody-cn commented on May 27, 2025

    @cody-cn

    刷机解决方案支持X10A吗

  5. puttys commented on Jun 14, 2025

    @puttys

    cookie中passToken似乎被拿掉了?没找到了

  6. HandisableL commented on Jun 18, 2025

    @HandisableL

    cookie中passToken似乎被拿掉了?没找到了

    今天用火狐试过了 能找到啊...

  7. x2009again commented on Jun 21, 2025

    @x2009again

    cookie中passToken似乎被拿掉了?没找到了

    今天用火狐试过了 能找到啊...

    你用了token有效果么,我看了下这个token有效期一个月,但是放到配置文件里面后还是不行,提示 “本次登录需要验证码,请使用 passToken 重新登录”

  8. nmww commented on Jun 21, 2025

    @nmww
  9. x2009again commented on Jun 21, 2025

    @x2009again

    可以

    cc
    @.***

    可以了,token加错文件了。

  10. shaliuxin commented on Jun 27, 2025

    @shaliuxin

    日志显示"验证码输入错误",无法完成登录

  11. zhusjfaker commented on Jul 18, 2025

    @zhusjfaker

    https://github.com/zhusjfaker/auto_record_mi_token 做了一个自动获取 passtoken 的工具 利用 puppeteer 这样就不用运行容器的 每隔几天都要去浏览器里 抄 passtoken 了。

  12. KGEW commented on Aug 19, 2025

    @KGEW

    Client network socket disconnected before secure TLS connection was established

    出现这个错误怎么办?

  13. WeskerC commented on Aug 30, 2025

    @WeskerC

    "code":87001,"desc":"验证码输入错误","captchaUrl":"/pass/getCode?icodeType=login&0.28xxxxxxxxx","type":"manMachine"

  14. kirinq17 commented on Aug 31, 2025

    @kirinq17

    加了passtoken ,还是不行 code":87001,"desc":"验证码输入错误

  15. nnssz commented on Oct 18, 2025

    @nnssz

    请问 passToken: 'V1:DXmxxxxxxxxxxxxxxxxxxxxxxxx'
    包括前面的 'V1:' 吗?

    Image

    加了passToken,还是提示需要 "本次登录需要验证码,请使用 passToken 重新登录"
    docker run -it --rm -v $(pwd)/config.js:/app/config.js idootop/migpt-next:latest

    / $$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$$$
    | $$$ /$$$|/ /$$ $$| $$__ $$|__ $$/
    | $$$$ /$$$$ /$$| $$ _/| $$ \ $$ | $$
    | $$ $$/$$ $$| $$| $$ /$$$$| $$$$$$$/ | $$
    | $$ $$$| $$| $$| $$|
    $$| $$____/ | $$
    | $$\ $ | $$| $$| $$ \ $$| $$ | $$
    | $$ / | $$| $$| $$$$$$/| $$ | $$
    |
    / |/|/ __/ |/ |/

    MiGPT-Next v1.2.1  by: https://del.wang
    

    ❌ 本次登录需要验证码,请使用 passToken 重新登录
    💡 获取 passToken 教程:#4
    ❌ 初始化 Mi Services 失败

  16. added a commit that references this issue on Feb 11, 2026
  17. thinkpack commented on Feb 24, 2026

    @thinkpack

    传入passtoken,你们的有效果没?我的看日志要验证,复制日志里面的地址手机验证后还是不行。

  18. dlutwang commented on Feb 26, 2026

    @dlutwang

    "code":70016。和之前的87001不一样了

  19. artistxi commented on Mar 29, 2026

    @artistxi

    设置了passToken但是还会报错:
    ❌ 登录失败,请检查你的账号密码是否正确 &&&START&&&{"code":87001,"desc":"验证码输入错误","captchaUrl":"/pass/getCode?icodeType=login&0.10384287359570499","type":"manMachine"}
    ❌ 登录失败,请检查你的账号密码是否正确 &&&START&&&{"code":87001,"desc":"验证码输入错误","captchaUrl":"/pass/getCode?icodeType=login&0.46439615807106127","type":"manMachine"}
    ❌ 初始化 Mi Services 失败

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions