WorkOS PHP SDK

AuthenticationChallenge
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$authenticationFactorId  : string
The unique ID of the authentication factor the challenge belongs to.
$code  : string|null
The one-time code for the challenge.
$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$expiresAt  : DateTimeImmutable|null
The timestamp when the challenge will expire. Does not apply to TOTP factors.
$id  : string
The unique ID of the authentication challenge.
$object  : string
Distinguishes the authentication challenge object.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

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

Properties

$authenticationFactorId

The unique ID of the authentication factor the challenge belongs to.

public string $authenticationFactorId

$expiresAt

The timestamp when the challenge will expire. Does not apply to TOTP factors.

public DateTimeImmutable|null $expiresAt = null

Methods

__construct()

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

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

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

        
On this page

Search results