gpt4 book ai didi

cordova - 不支持所选的 SHA 变体

转载 作者:行者123 更新时间:2023-12-03 15:58:59 38 4
gpt4 key购买 nike

我正在使用 Ionic 开发移动应用程序,我必须与 Twitter API 连接。
所以我使用 ng-cordova 和 $cordovaAuth .但是当我这样做时:

$cordovaOauth.twitter(clientId, clientSecret);

我收到以下错误:

error Error: Chosen SHA variant is not supported at Error (native) at new t (http://192.168.1.19:8100/lib/sha-js/sha1.js:12:276) at Object.createSignature (http://192.168.1.19:8100/lib/ngCordova/dist/ng-cordova.js:6120:38) at Object.twitter (http://192.168.1.19:8100/lib/ngCordova/dist/ng-cordova.js:5623:55) at Object.initialize (http://192.168.1.19:8100/js/services/twitter.js:18:18)



所以,问题来自 sha1.js , 我把它包含在我的 index.html

如果你能帮助我就好了!

最佳答案

最后,jsSHA 的最后一个版本不适用于 ngCordova。它适用于 1.6.0 版本
见:https://github.com/nraboy/ng-cordova-oauth/issues/93#issuecomment-113279865

关于cordova - 不支持所选的 SHA 变体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30916991/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com