add username to hub session and rename session folder to .openbb_sdk

This commit is contained in:
montezdesousa
2023-07-10 01:31:27 +01:00
parent cd6f76d27f
commit e765ff5c1c
3 changed files with 4 additions and 1 deletions

View File

@@ -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"),
)

View File

@@ -6,6 +6,7 @@ class HubSession(BaseModel):
token_type: str
user_uuid: str
email: str
username: str
primary_usage: str
def __repr__(self) -> str:

View File

@@ -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"