diff --git a/avanza/credentials.py b/avanza/credentials.py index 2fba8da..bd5d876 100644 --- a/avanza/credentials.py +++ b/avanza/credentials.py @@ -32,7 +32,7 @@ class SecretCredentials(BaseCredentials): totp_secret: str = Field(..., alias="totpSecret") class Config: - allow_mutation = False + frozen = True @property def totp_code(self) -> str: @@ -46,7 +46,7 @@ class TokenCredentials(BaseCredentials): totp_token: str = Field(..., alias="totpToken") class Config: - allow_mutation = False + frozen = True @property def totp_code(self):