问题描述
我一直在尝试使用 Auth0 读取 twitch 用户订阅数据 - 无济于事。
我在他们的文档中找到了 some information,解释了如何将海关范围添加到身份验证请求中。
我正在从“@auth0/auth0-spa-js”导入 createAuth0Client 函数并调用下面的函数
this.auth0Client = await createAuth0Client({
domain: options.domain,client_id: options.clientId,audience: options.audience,redirect_uri: redirectUri,scope: 'email profile user:read:subscriptions' // change the scopes that are applied to every authz request. **Note**: `openid` is always specified regardless of this setting
});
当我被重定向到 twitch 进行身份验证时,它只是请求访问我的电子邮件。从未请求阅读订阅,因此未获得授权。
任何指导或示例将不胜感激。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)