我需要在auth0中设置其他参数才能使观众网址正常工作。在authlock你可以简单地这样做:auth0js中的Authparams
var lock = new Auth0Lock('clientID', 'account.auth0.com', {
auth: {
params: {
audience: 'url'
}
}
});
我想我需要我的authservice中的代码添加到我的auth0config但我不知道是什么,以及如何:
const auth0Config = {
// needed for auth0
clientID: 'id',
// needed for auth0cordova
clientId: 'id',
domain: 'url',
callbackURL: location.href,
packageIdentifier: 'id',
};
谁能告诉我怎么做?
我也在auth0论坛上问过并得到了答案,但我并不那么幸运,它没有工作。 Post is here:https://community.auth0.com/questions/9793/test-token-is-different-from-generated-token-audie 也许它使它更逻辑的你,我会尝试我的可以与您的帖子。 – Nathan
我更改了节点源代码,并在auth0论坛上的地方建议添加了观众,现在它可以工作。 我非常感谢你的详细说明,因为我终于可以继续我的项目了。 – Nathan
很棒的听到.. – arcseldon