diff --git a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/hub_manager.py b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/hub_manager.py index dd9ac7d3c4a..b2ab00e9a23 100644 --- a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/hub_manager.py +++ b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/hub_manager.py @@ -105,6 +105,7 @@ class HubManager: token_type=session.get("token_type"), user_uuid=session.get("uuid"), email=session.get("email"), + username=session.get("username"), primary_usage=session.get("primary_usage"), ) return hub_session @@ -132,6 +133,7 @@ class HubManager: access_token=session.get("access_token"), token_type=session.get("token_type"), user_uuid=session.get("uuid"), + username=session.get("username"), email=session.get("email"), primary_usage=session.get("primary_usage"), ) diff --git a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/model/hub_session.py b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/model/hub_session.py index f6c7ec4303d..f5e53170525 100644 --- a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/model/hub_session.py +++ b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/hub/model/hub_session.py @@ -6,6 +6,7 @@ class HubSession(BaseModel): token_type: str user_uuid: str email: str + username: str primary_usage: str def __repr__(self) -> str: diff --git a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/model/system_settings.py b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/model/system_settings.py index eecd13bd8d2..388b017be0b 100644 --- a/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/model/system_settings.py +++ b/openbb_sdk/openbb_sdk_core/openbb_sdk_core/app/model/system_settings.py @@ -27,7 +27,7 @@ class SystemSettings(Tagged): # TODO: Get the version of the SDK from somewhere that's not pyproject.toml version: str = "4.0.0dev" home_directory: str = str(Path.home()) - openbb_directory: str = str(Path(home_directory, ".openbb")) + openbb_directory: str = str(Path(home_directory, ".openbb_sdk")) # Logging section logging_app_name: str = "gst"