Fix error message

The code is trying to get a string from a json object, and if that fails it should log "is not a string", not "is not a timestamp".
This commit is contained in:
Stypox 2022-01-22 21:58:32 +01:00 committed by dada513
parent 8804b035b2
commit 0235eb5c28
No known key found for this signature in database
GPG Key ID: 403448C14FA4B33E

View File

@ -94,7 +94,7 @@ bool parseXTokenResponse(QByteArray & data, Katabasis::Token &output, QString na
return false;
}
if(!getString(obj.value("Token"), output.token)) {
qWarning() << "User Token is not a timestamp";
qWarning() << "User Token is not a string";
return false;
}
auto arrayVal = obj.value("DisplayClaims").toObject().value("xui");