在uniapp的程序app.vue中增加初始化代码,
const authing = new Authing({
appId: “6715ca3xxxxxxx942246c”,
// 公有云部署:Authing 控制台 -> 选择已创建的小程序应用 -> 应用配置 -> -> 认证配置 -> 认证地址
// 私有化部署:填写你的私有服务地址
host: "https://xxxxx.authing.cn",
// 用户池 ID
userPoolId: "663xxxxxxxx3a5c48",
// 非必传,密码默认将以明文传输
encryptFunction,
});
然后运行到小程序模拟器->微信开发者工具,在微信开发者工具的调试器中报错:
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a Symbol.iterator method.
at _nonIterableRest (nonIterableRest.js:1)
at _slicedToArray (slicedToArray.js:1)
at _callee$ (vendor.js? [sm]:8837)
at s (regeneratorRuntime.js:1)
at Generator. (regeneratorRuntime.js:1)
at Generator.next (regeneratorRuntime.js:1)
at asyncGeneratorStep (asyncToGenerator.js:1)
at c (asyncToGenerator.js:1)(env: Windows,mp,1.06.2409140; lib: 2.25.3)