WorkOS PHP SDK

AuthenticationMagicAuthFailedDataError
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Details about the authentication error.

Table of Contents

Interfaces

JsonSerializable

Properties

$code  : string
The error code.
$message  : string
A human-readable error message.
$radarDetectionId  : string|null
The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.

Methods

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

Properties

$radarDetectionId

The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.

public string|null $radarDetectionId = null

Methods

__construct()

public __construct(string $code, string $message[, string|null $radarDetectionId = null ]) : mixed
Parameters
$code : string
$message : string
$radarDetectionId : string|null = null

jsonSerialize()

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

Search results