Skip to content

Commit cc661c1

Browse files
committed
add last_sign_in_at to user
1 parent 5f8eb45 commit cc661c1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/test_user_management.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ def test_get_user(self, mock_user, capture_and_mock_http_client_request):
390390
assert request_kwargs["method"] == "get"
391391
assert user.id == "user_01H7ZGXFP5C6BBQY6Z7277ZCT0"
392392
assert user.profile_picture_url == "https://example.com/profile-picture.jpg"
393+
assert user.last_sign_in_at == "2021-06-25T19:07:33.155Z"
393394

394395
def test_list_users_auto_pagination(
395396
self,

tests/utils/fixtures/mock_user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def __init__(self, id):
1414
last_name="Hoeger",
1515
email_verified=False,
1616
profile_picture_url="https://example.com/profile-picture.jpg",
17+
last_sign_in_at="2021-06-25T19:07:33.155Z",
1718
created_at=now,
1819
updated_at=now,
1920
)

workos/types/user_management/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ class User(WorkOSModel):
1212
last_name: Optional[str] = None
1313
email_verified: bool
1414
profile_picture_url: Optional[str] = None
15+
last_sign_in_at: Optional[str] = None
1516
created_at: str
1617
updated_at: str

0 commit comments

Comments
 (0)