Google Authenticator 是否有任何 dart 库?

Is there any dart library for the Google Authenticator?

我正在寻找一种方法 implement/connect Google-Authenticator 进入 Flutter/Dart。目标是能够验证在 Google-Authenticator 应用程序中生成的代码以创建两步验证。

可能是我瞎了,但是因为这个名字,真的很难在上面找到任何东西(感谢"authenticator"这个词)。到目前为止我能找到的最好的是 PHP 端口:https://packagist.org/packages/sonata-project/google-authenticator

我什至找不到有关身份验证器的 API 文档。

在我开始编写自己的实现之前:Dart 已经有任何实现了吗?我在哪里可以找到 Google-Authenticator 文档?

编辑 1:澄清了关于实施 Google-Authenticator(验证代码)的部分。

你好@Katai 我想这个功能由于条款的原因有点难找,但也因为它通常与 Google 的登录功能混淆/混淆。如果您正在寻找的是 Google 的一次性密码/身份验证器的库,我相信这会有所帮助:https://pub.dartlang.org/packages/otp

如果有人正在寻找 dart 库以使用来自 Google 身份验证器的密钥来生成匹配令牌,以下库会有所帮助。

https://pub.dev/packages/dart_otp

Dependency: dart_otp: ^1.3.0

print(TOTP(secret: "<secret key>").now());