WorkOS PHP SDK

MagicAuthSendMagicAuthCodeAndReturnResponse
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$code  : string
The code used to verify the Magic Auth code.
$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$email  : string
The email address of the user.
$expiresAt  : DateTimeImmutable
The timestamp when the Magic Auth code expires.
$id  : string
The unique ID of the Magic Auth code.
$object  : string
Distinguishes the Magic Auth object.
$radarAuthAttemptId  : string|null
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.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$userId  : string
The unique ID of the user.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$radarAuthAttemptId

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.

public string|null $radarAuthAttemptId = null

Methods

__construct()

public __construct(string $object, string $id, string $userId, string $email, DateTimeImmutable $expiresAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, string $code[, string|null $radarAuthAttemptId = null ]) : mixed
Parameters
$object : string
$id : string
$userId : string
$email : string
$expiresAt : DateTimeImmutable
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$code : string
$radarAuthAttemptId : string|null = null

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results