Giter Club home page Giter Club logo

Comments (12)

skylineman avatar skylineman commented on May 31, 2024 1

正在研究中。

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

嗨,最近开发重心没在flutter这边。如果你已经自己开发了短信登录,非常欢迎提交PR,我会尽快合并到主分支。

同时也欢迎来讨论任何问题。

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

刚刚用copilot补了一个smsAuth的代码,不知道效果怎样,方便的话你可以试试,如果有问题也欢迎来反馈。

branch: sms-auth

from cloudbase_ce.

skylineman avatar skylineman commented on May 31, 2024

好的,感谢🙏

from cloudbase_ce.

skylineman avatar skylineman commented on May 31, 2024

返回错误信息:
Unhandled Exception: CloudBaseError [PERMISSION_DENIED]: Unauthenticated access is denied

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

@skylineman, 请问短信登录的代码测试通过了吗,如果已经可用,我将合并到主分支

from cloudbase_ce.

skylineman avatar skylineman commented on May 31, 2024

只可以发送短信了,但登录不行。没找到使用验证码注册、登录的请求命令字,试了"auth.singInWithPhoneCode", "auth.singUpWithPhoneCode", 都响应是无效指令。

发送短信还有小问题:总是返回: '短信发送失败',但实际上能接受到验证码短信。

final CloudBaseResponse? res = await CloudBaseRequest(super.core).postWithoutAuth('auth.sendPhoneCode', {'phoneNumber': phone});

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

只可以发送短信了,但登录不行。没找到使用验证码注册、登录的请求命令字,试了"auth.singInWithPhoneCode", "auth.singUpWithPhoneCode", 都响应是无效指令。

发送短信还有小问题:总是返回: '短信发送失败',但实际上能接受到验证码短信。

final CloudBaseResponse? res = await CloudBaseRequest(super.core).postWithoutAuth('auth.sendPhoneCode', {'phoneNumber': phone});

谢谢你的反馈!

由于官方没有提供flutter的短信登录的相关介绍,我也只能参考js sdk和借助copilot,我还没有短信资源包,所以没办法测试。
不过总体来说是好的,毕竟发送验证码的功能已经成功了。

如果你愿意修正这部分代码,非常欢迎你提交PR。

from cloudbase_ce.

skylineman avatar skylineman commented on May 31, 2024

手机短信注册及登录都 OK 了,这两天我把代码传上来。

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

手机短信注册及登录都 OK 了,这两天我把代码传上来。

太棒了!这是一个官方没有在flutter sdk中提供,但却十分重要的功能。非常感谢你的贡献!

我会在第一时间处理PR并推送到pub.dev上。欢迎来交流任何问题。

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

@skylineman 看到你已将代码提交到了新的branch,欢迎提交PR。

新年快乐🎉~

from cloudbase_ce.

bookshiyi avatar bookshiyi commented on May 31, 2024

@skylineman,现在你仓库中的代码是完善的吗?期待收到你的PR

from cloudbase_ce.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.