WorkOS PHP SDK

MFATotpSessionAuthenticateRequest
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$authenticationChallengeId  : string
The ID of the MFA authentication challenge.
$clientId  : string
The client ID of the application.
$clientSecret  : string
The client secret of the application.
$code  : string
The TOTP code from the authenticator app.
$deviceId  : string|null
A unique identifier for the device.
$grantType  : string
$ipAddress  : string|null
The IP address of the user's request.
$pendingAuthenticationToken  : string
The pending authentication token from a previous authentication attempt.
$userAgent  : string|null
The user agent string from the user's browser.

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.

public string $pendingAuthenticationToken

Methods

__construct()

public __construct(string $clientId, string $clientSecret, string $grantType, string $code, string $pendingAuthenticationToken, string $authenticationChallengeId[, string|null $ipAddress = null ][, string|null $deviceId = null ][, string|null $userAgent = null ]) : mixed
Parameters
$clientId : string
$clientSecret : string
$grantType : string
$code : string
$pendingAuthenticationToken : string
$authenticationChallengeId : string
$ipAddress : string|null = null
$deviceId : string|null = null
$userAgent : string|null = null

jsonSerialize()

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

        
On this page

Search results