Add missing failed_callback

If it fails to check the token, respond through the callback with None as well.

Contributes to issue CURA-8539.
This commit is contained in:
Ghostkeeper 2021-11-22 13:24:06 +01:00
parent c8aff57bfe
commit 937d48a4e8
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -134,7 +134,7 @@ class AuthorizationService:
self._auth_helpers.getAccessTokenUsingRefreshToken(self._auth_data.refresh_token, process_auth_data)
self._auth_helpers.checkToken(self._auth_data.access_token, check_user_profile)
self._auth_helpers.checkToken(self._auth_data.access_token, check_user_profile, lambda: callback(None))
def getAccessToken(self) -> Optional[str]:
"""Get the access token as provided by the response data."""