Skip to content

Commit

Permalink
Update mfa with default None
Browse files Browse the repository at this point in the history
  • Loading branch information
tribble committed Aug 3, 2024
1 parent cee5e99 commit 8066b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workos/resources/mfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ class AuthenticationFactorTotp(AuthenticationFactorBase):
"""Representation of a MFA Authentication Factor Response as returned by WorkOS through the MFA feature."""

type: TotpAuthenticationFactorType
totp: Union[TotpFactor, ExtendedTotpFactor, None]
totp: Union[TotpFactor, ExtendedTotpFactor, None] = None


class AuthenticationFactorSms(AuthenticationFactorBase):
"""Representation of a SMS Authentication Factor Response as returned by WorkOS through the MFA feature."""

type: SmsAuthenticationFactorType
sms: Union[SmsFactor, None]
sms: Union[SmsFactor, None] = None


AuthenticationFactor = Union[AuthenticationFactorTotp, AuthenticationFactorSms]
Expand Down

0 comments on commit 8066b2f

Please sign in to comment.