Add a bit more logging to the authorization service

This commit is contained in:
Jaime van Kessel 2018-12-20 11:31:01 +01:00
parent 881e98c642
commit 36efa171c6

View file

@ -83,9 +83,11 @@ class AuthorizationService:
if not self.getUserProfile():
# We check if we can get the user profile.
# If we can't get it, that means the access token (JWT) was invalid or expired.
Logger.log("w", "Unable to get the user profile.")
return None
if self._auth_data is None:
Logger.log("d", "No auth data to retrieve the access_token from")
return None
return self._auth_data.access_token