mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:55:58 +08:00
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:
parent
c8aff57bfe
commit
937d48a4e8
@ -134,7 +134,7 @@ class AuthorizationService:
|
|||||||
|
|
||||||
self._auth_helpers.getAccessTokenUsingRefreshToken(self._auth_data.refresh_token, process_auth_data)
|
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]:
|
def getAccessToken(self) -> Optional[str]:
|
||||||
"""Get the access token as provided by the response data."""
|
"""Get the access token as provided by the response data."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user