Fixed issue with error messages in Oauth2

This commit is contained in:
frikky
2022-11-11 14:42:24 +01:00
parent d0ea0b9d84
commit 7d8bf32f28
+6 -1
View File
@@ -142,9 +142,14 @@ const SetAuthentication = (props) => {
appAuthData.label = `${foundScope}` appAuthData.label = `${foundScope}`
} }
const foundTab = params["error"]; var foundTab = params["error"];
if (foundTab !== null && foundTab !== undefined && foundTab.length > 0) { if (foundTab !== null && foundTab !== undefined && foundTab.length > 0) {
console.log("Found error: ", foundTab, "! Skipping Shuffle requests to validate Oauth2") console.log("Found error: ", foundTab, "! Skipping Shuffle requests to validate Oauth2")
var errorDesc = params["error_description"]
if (errorDesc !== null && errorDesc !== undefined && errorDesc.length > 0) {
foundTab += "\n\n"+errorDesc
}
setFailed(true) setFailed(true)
setResponse(`${foundTab}`) setResponse(`${foundTab}`)
} else { } else {