You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Resource/MagicAuthSendMagicAuthCodeAndReturnResponse.php
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,22 @@
11
11
use JsonSerializableTrait;
12
12
13
13
publicfunction__construct(
14
+
/** Distinguishes the Magic Auth object. */
15
+
publicstring$object,
16
+
/** The unique ID of the Magic Auth code. */
17
+
publicstring$id,
18
+
/** The unique ID of the user. */
19
+
publicstring$userId,
20
+
/** The email address of the user. */
21
+
publicstring$email,
22
+
/** The timestamp when the Magic Auth code expires. */
23
+
public\DateTimeImmutable$expiresAt,
24
+
/** An ISO 8601 timestamp. */
25
+
public\DateTimeImmutable$createdAt,
26
+
/** An ISO 8601 timestamp. */
27
+
public\DateTimeImmutable$updatedAt,
28
+
/** The code used to verify the Magic Auth code. */
29
+
publicstring$code,
14
30
/** The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt. */
15
31
public ?string$radarAuthAttemptId = null,
16
32
) {
@@ -19,13 +35,29 @@ public function __construct(
19
35
publicstaticfunctionfromArray(array$data): self
20
36
{
21
37
returnnewself(
38
+
object: $data['object'] ?? 'magic_auth',
39
+
id: $data['id'],
40
+
userId: $data['user_id'],
41
+
email: $data['email'],
42
+
expiresAt: new \DateTimeImmutable($data['expires_at']),
43
+
createdAt: new \DateTimeImmutable($data['created_at']),
44
+
updatedAt: new \DateTimeImmutable($data['updated_at']),
Copy file name to clipboardExpand all lines: lib/Resource/UserCreateResponse.php
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,37 @@
11
11
use JsonSerializableTrait;
12
12
13
13
publicfunction__construct(
14
+
/** Distinguishes the user object. */
15
+
publicstring$object,
16
+
/** The unique ID of the user. */
17
+
publicstring$id,
18
+
/** The first name of the user. */
19
+
public ?string$firstName,
20
+
/** The last name of the user. */
21
+
public ?string$lastName,
22
+
/** A URL reference to an image representing the user. */
23
+
public ?string$profilePictureUrl,
24
+
/** The email address of the user. */
25
+
publicstring$email,
26
+
/** Whether the user's email has been verified. */
27
+
publicbool$emailVerified,
28
+
/** The external ID of the user. */
29
+
public ?string$externalId,
30
+
/** The timestamp when the user last signed in. */
31
+
public ?\DateTimeImmutable$lastSignInAt,
32
+
/** An ISO 8601 timestamp. */
33
+
public\DateTimeImmutable$createdAt,
34
+
/** An ISO 8601 timestamp. */
35
+
public\DateTimeImmutable$updatedAt,
36
+
/** The user's full name. */
37
+
public ?string$name = null,
38
+
/**
39
+
* Object containing metadata key/value pairs associated with the user.
40
+
* @var array<string, string>|null
41
+
*/
42
+
public ?array$metadata = null,
43
+
/** The user's preferred locale. */
44
+
public ?string$locale = null,
14
45
/** The ID of the Radar authentication attempt created for this request when Radar is enabled. Pass this value to the authenticate endpoint to associate the subsequent authentication with this Radar attempt. */
0 commit comments