Merge pull request #98 from specklesystems/izzy/accts-hotfix

fix(credentials): make some fields optional
This commit is contained in:
izzy lyseggen
2021-05-25 15:30:14 +01:00
committed by GitHub
+3 -3
View File
@@ -14,12 +14,12 @@ class UserInfo(BaseModel):
class Account(BaseModel):
isDefault: bool
isDefault: bool = None
token: str
refreshToken: str
refreshToken: str = None
serverInfo: ServerInfo
userInfo: UserInfo
id: str
id: str = None
def __repr__(self) -> str:
return f"Account(email: {self.userInfo.email}, server: {self.serverInfo.url}, isDefault: {self.isDefault})"