Calculate expiry date to determine if token refresh is needed

This commit is contained in:
ChrisTerBeke 2019-02-08 21:39:45 +01:00
parent 9d6bd4b29a
commit 05c4b6012e
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
5 changed files with 19 additions and 15 deletions

View file

@ -9,7 +9,6 @@ from cura.OAuth2.Models import AuthenticationResponse, ResponseData, HTTP_STATUS
if TYPE_CHECKING:
from cura.OAuth2.Models import ResponseStatus
from cura.OAuth2.AuthorizationHelpers import AuthorizationHelpers
# This handler handles all HTTP requests on the local web server.