mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue