Skip to content

Commit

Permalink
Add defaults to authentication payload
Browse files Browse the repository at this point in the history
  • Loading branch information
tribble committed Aug 3, 2024
1 parent 8066b2f commit 8d07132
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workos/types/events/authentication_payload.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Literal, Union
from typing import Literal, Optional
from workos.resources.workos_model import WorkOSModel


class AuthenticationResultCommon(WorkOSModel):
ip_address: Union[str, None]
user_agent: Union[str, None]
ip_address: Optional[str] = None
user_agent: Optional[str] = None
email: str
created_at: str

Expand Down Expand Up @@ -58,4 +58,4 @@ class AuthenticationPasswordSucceededPayload(AuthenticationResultSucceeded):

class AuthenticationSsoSucceededPayload(AuthenticationResultSucceeded):
type: Literal["sso"]
user_id: Union[str, None]
user_id: Optional[str] = None

0 comments on commit 8d07132

Please sign in to comment.