Skip to content

Commit

Permalink
add lastSignInAt to user (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
stacurry authored Feb 20, 2025
1 parent d99809c commit dbc3585
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Resource/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class User extends BaseWorkOSResource
"lastName",
"emailVerified",
"profilePictureUrl",
"lastSignInAt",
"createdAt",
"updatedAt"
];
Expand All @@ -29,6 +30,7 @@ class User extends BaseWorkOSResource
"last_name" => "lastName",
"email_verified" => "emailVerified",
"profile_picture_url" => "profilePictureUrl",
"last_sign_in_at" => "lastSignInAt",
"created_at" => "createdAt",
"updated_at" => "updatedAt"
];
Expand Down
8 changes: 8 additions & 0 deletions tests/WorkOS/UserManagementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,7 @@ private function userResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
]
Expand All @@ -1434,6 +1435,7 @@ private function userAndImpersonatorResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
],
Expand All @@ -1456,6 +1458,7 @@ private function createUserAndTokenResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
'profile_picture_url' => 'https://example.com/photo.jpg',
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
]
Expand All @@ -1472,6 +1475,7 @@ private function createUserResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
'profile_picture_url' => 'https://example.com/photo.jpg',
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
]);
Expand Down Expand Up @@ -1579,6 +1583,7 @@ private function getUserResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
]);
Expand All @@ -1596,6 +1601,7 @@ private function listUsersResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
]
Expand Down Expand Up @@ -1625,6 +1631,7 @@ private function userFixture()
"lastName" => "Alabaster",
"emailVerified" => true,
"profilePictureUrl" => "https://example.com/photo.jpg",
"lastSignInAt" => "2021-06-25T19:07:33.155Z",
"createdAt" => "2021-06-25T19:07:33.155Z",
"updatedAt" => "2021-06-25T19:07:33.155Z"
];
Expand All @@ -1641,6 +1648,7 @@ private function userAndOrgResponseFixture()
"last_name" => "Alabaster",
"email_verified" => true,
"profile_picture_url" => "https://example.com/photo.jpg",
"last_sign_in_at" => "2021-06-25T19:07:33.155Z",
"created_at" => "2021-06-25T19:07:33.155Z",
"updated_at" => "2021-06-25T19:07:33.155Z"
],
Expand Down

0 comments on commit dbc3585

Please sign in to comment.