Closed fulus06 closed 5 years ago
没错,原本有考虑实现这个的,但貌似APP内直接填写部分敏感信息也不是不安全,毕竟打包上线都需要经过混淆来确保APP避免被反编译,这一步实现也比较容易,欢迎PR
/// http response data
/// dart端直接调用后台生成token字符串原样传递过去
String responseToKenString = {
"code": 200,
"message": "success",
"data": {
"appId": $appId,
"appPackage": $appPackage,
"appAccount": $appAccount,
"miChid": $chid,
"miUserId": $uuid,
"miUserSecurityKey": $appSecret,
"token": $token,
"regionBucket": $regionBucket,
"feDomainName": $feDomainName,
"relayDomainName": $relayDomainName
}
}
FlutterMimc flutterMimc = FlutterMimc.stringTokenInit(responseToKenString)
后面会这样实现
此版本已解决该问题,请更新版本以使用v0.1.0
如题: https://admin.mimc.chat.xiaomi.net/docs/03-auth.html