| 67 | } |
| 68 | |
| 69 | bool HttpReqJwtUpdate(AuthProfile* profile) |
| 70 | { |
| 71 | QJsonObject dataJson; |
| 72 | QByteArray jsonData = QJsonDocument(dataJson).toJson(); |
| 73 | |
| 74 | QString sUrl = profile->GetURL() + "/refresh"; |
| 75 | QJsonObject jsonObject = HttpReq(sUrl, jsonData, profile->GetRefreshToken()); |
| 76 | if ( jsonObject.contains("access_token") ) { |
| 77 | profile->SetAccessToken( jsonObject["access_token"].toString() ); |
| 78 | return true; |
| 79 | } |
| 80 | return false; |
| 81 | } |
| 82 | |
| 83 | bool HttpReqGetOTP(const QString &type, const QString &objectId, AuthProfile profile, QString* message, bool* ok) |
| 84 | { |
no test coverage detected