我在 IBM MobileFirst 8.0 中使用 Angular。我正面临 WLAuthorizationManager.obtainAccessToken() 的问题
我正在使用下面的代码。
WLAuthorizationManager.obtainAccessToken()
.then(
function (token) {
console.log(token);
},
function (res) {
console.log(res);
})
Run Code Online (Sandbox Code Playgroud)
但是,我总是收到以下错误。
回复:
errorCode: "400"
errorMsg: "Bad Request"
responseHeaders: {cache-control: "[no-store, no-cache, must-revalidate]", connection: "[close]", content-language: "[en-US]", content-security-policy: "[default-src 'self';]", content-type: "[application/json]", …}
responseText: "\"Invalid request body - JSON mapping failed.\""
status: 400
statusText: "Bad Request
Run Code Online (Sandbox Code Playgroud)
版本详情:
科尔多瓦插件-mfp:8.0.2021031007
ibm-mfp-web-sdk:8.0.2021011205
该项目已在 mfp 控制台中创建。
任何帮助将不胜感激。谢谢!