-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathSession.php
More file actions
54 lines (50 loc) · 1.3 KB
/
Session.php
File metadata and controls
54 lines (50 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace WorkOS\Resource;
/**
* Class Session.
*
* @property string $id
* @property string $userId
* @property string|null $ipAddress
* @property string|null $userAgent
* @property string|null $organizationId
* @property string $authenticationMethod
* @property string $status
* @property string $expiresAt
* @property string|null $endedAt
* @property string $createdAt
* @property string $updatedAt
* @property string $object
*/
class Session extends BaseWorkOSResource
{
public const RESOURCE_TYPE = "session";
public const RESOURCE_ATTRIBUTES = [
"id",
"userId",
"ipAddress",
"userAgent",
"organizationId",
"authenticationMethod",
"status",
"expiresAt",
"endedAt",
"createdAt",
"updatedAt",
"object"
];
public const RESPONSE_TO_RESOURCE_KEY = [
"id" => "id",
"user_id" => "userId",
"ip_address" => "ipAddress",
"user_agent" => "userAgent",
"organization_id" => "organizationId",
"authentication_method" => "authenticationMethod",
"status" => "status",
"expires_at" => "expiresAt",
"ended_at" => "endedAt",
"created_at" => "createdAt",
"updated_at" => "updatedAt",
"object" => "object"
];
}