WorkOS PHP SDK

SendRadarSmsChallenge
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$ipAddress  : string|null
The IP address of the user's request.
$pendingAuthenticationToken  : string
The pending authentication token from a previous authentication attempt that triggered the Radar challenge.
$phoneNumber  : string
The phone number to send the SMS verification code to.
$userAgent  : string|null
The user agent string from the user's request.
$userId  : string
The ID of the user to send the SMS challenge to.

Methods

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

Properties

$pendingAuthenticationToken

The pending authentication token from a previous authentication attempt that triggered the Radar challenge.

public string $pendingAuthenticationToken

$phoneNumber

The phone number to send the SMS verification code to.

public string $phoneNumber

$userAgent

The user agent string from the user's request.

public string|null $userAgent = null

Methods

__construct()

public __construct(string $userId, string $pendingAuthenticationToken, string $phoneNumber[, string|null $ipAddress = null ][, string|null $userAgent = null ]) : mixed
Parameters
$userId : string
$pendingAuthenticationToken : string
$phoneNumber : string
$ipAddress : string|null = null
$userAgent : 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>

toArray()

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

Search results