Skip to content

Commit

Permalink
checking if token has expired
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jan 29, 2025
1 parent 7f5425a commit 00ca4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/merginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4056,5 +4056,5 @@ void MerginApi::setNetworkManager( QNetworkAccessManager *manager )

bool MerginApi::isLoggedIn() const
{
return mUserAuth->hasAuthData() && !mUserAuth->authToken().isEmpty();
return mUserAuth->hasAuthData() && !mUserAuth->authToken().isEmpty() && !( mUserAuth->tokenExpiration() < QDateTime().currentDateTime().toUTC() );
}

1 comment on commit 00ca4d1

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 25.1.701111 just submitted!

Please sign in to comment.