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
$code
The code used to verify the Magic Auth code.
public
string
$code
$createdAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$createdAt
The email address of the user.
public
string
$email
$expiresAt
The timestamp when the Magic Auth code expires.
public
DateTimeImmutable
$expiresAt
$id
The unique ID of the Magic Auth code.
public
string
$id
$object
Distinguishes the Magic Auth object.
public
string
$object
$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
$updatedAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$updatedAt
$userId
The unique ID of the user.
public
string
$userId
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
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>