mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Add property for the accessToken
CURA-5744
This commit is contained in:
parent
067e59a254
commit
16ff1c3712
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,10 @@ class Account(QObject):
|
||||||
return None
|
return None
|
||||||
return user_profile.profile_image_url
|
return user_profile.profile_image_url
|
||||||
|
|
||||||
|
@pyqtProperty(str, notify=loginStateChanged)
|
||||||
|
def accessToken(self) -> Optional[str]:
|
||||||
|
return self._authorization_service.getAccessToken()
|
||||||
|
|
||||||
# Get the profile of the logged in user
|
# Get the profile of the logged in user
|
||||||
# @returns None if no user is logged in, a dict containing user_id, username and profile_image_url
|
# @returns None if no user is logged in, a dict containing user_id, username and profile_image_url
|
||||||
@pyqtProperty("QVariantMap", notify = loginStateChanged)
|
@pyqtProperty("QVariantMap", notify = loginStateChanged)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue