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 GitHub
parent 63098b6f19
commit 8b31c638f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");