【发布时间】:2019-11-06 14:15:27
【问题描述】:
使用“expo-app-auth”中的 AppAuth 时出错;
当我尝试 authi 得到以下错误: [错误:ExpoAppAuth.Get Auth:JSON 反序列化错误]
const config = {
serviceConfiguration: {
authorizationEndpoint: 'https://api.netatmo.com/oauth2/authorize',
tokenEndpoint: 'https://api.netatmo.com/oauth2/token',
},
clientId: 'cilentid',
clientSecret: 'cilentsecret',
scopes: ['read_presence']
}
配置有问题吗?
【问题讨论】:
-
你执行了什么功能?
-
异步函数 signInAsync() { const authState = await AppAuth.authAsync(config) .catch((error, state) => console.log(error));返回身份验证状态; }
-
它适用于 ios 顺便说一句。
标签: react-native expo appauth