mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
fix oauth early token expiry
This commit is contained in:
parent
ce3d6d2fca
commit
27be157d70
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
//
|
||||
|
||||
#include <QtCore/QDataStream>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
#include "OAuthAccessToken.h"
|
||||
|
||||
|
@ -22,7 +23,7 @@ OAuthAccessToken::OAuthAccessToken() :
|
|||
OAuthAccessToken::OAuthAccessToken(const QJsonObject& jsonObject) :
|
||||
token(jsonObject["access_token"].toString()),
|
||||
refreshToken(jsonObject["refresh_token"].toString()),
|
||||
expiryTimestamp(QDateTime::currentMSecsSinceEpoch() + jsonObject["expires_in"].toDouble()),
|
||||
expiryTimestamp(QDateTime::currentMSecsSinceEpoch() + (jsonObject["expires_in"].toDouble() * 1000)),
|
||||
tokenType(jsonObject["token_type"].toString())
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue