mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 06:24:41 +02:00
Merge pull request #2099 from birarda/authentication
fix oauth early token expiry
This commit is contained in:
commit
6c27b99aba
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ OAuthAccessToken::OAuthAccessToken() :
|
||||||
OAuthAccessToken::OAuthAccessToken(const QJsonObject& jsonObject) :
|
OAuthAccessToken::OAuthAccessToken(const QJsonObject& jsonObject) :
|
||||||
token(jsonObject["access_token"].toString()),
|
token(jsonObject["access_token"].toString()),
|
||||||
refreshToken(jsonObject["refresh_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())
|
tokenType(jsonObject["token_type"].toString())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue