Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react native 使用 auth.js生成认证字符串时报错 #35

Open
ls19491314 opened this issue Oct 25, 2017 · 4 comments
Open

react native 使用 auth.js生成认证字符串时报错 #35

ls19491314 opened this issue Oct 25, 2017 · 4 comments

Comments

@ls19491314
Copy link

ls19491314 commented Oct 25, 2017

你好,你辛苦了!
首先感谢你们不辞劳苦的维护!我用react-native使用bce-sdk-js包,在生成认证字符串时,报错,显示不能加载 var util = require('util'); var crypto = require('crypto');,该怎么办,卡这里好长时间了,没法往后进行了!参看你们文档,我感觉如果自己写js认证,太容易出错了!希望指教,谢谢,🙏。。。。。

@ls19491314
Copy link
Author

add

@leeight
Copy link

leeight commented Nov 20, 2017

刚看到,最好发一个完整的例子看看

@leeight
Copy link

leeight commented Nov 20, 2017

这个模块没有在 react-native 下面测试过,所以可能会有一些兼容性的问题

@leeight
Copy link

leeight commented Nov 20, 2017

@ls19491314 你可以看看这里,有一个比较干净的版本,去掉了很多 Node.js 本身的依赖:https://github.com/leeight/bce-bos-uploader-lite/blob/lite/src/bce-sdk-js/auth.js#L148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants